mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Remove inline opacity style after transition complete
(This was causing the raw tag editor to sometimes *not* display for fallback presets like "point", "line", "area")
This commit is contained in:
@@ -10,7 +10,9 @@ iD.ui.Toggle = function(show, callback) {
|
||||
.transition()
|
||||
.style('opacity', show ? 1 : 0)
|
||||
.each('end', function() {
|
||||
d3.select(this).classed('hide', !show);
|
||||
d3.select(this)
|
||||
.classed('hide', !show)
|
||||
.style('opacity', null);
|
||||
if (callback) callback.apply(this);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user