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:
Bryan Housel
2016-01-29 00:38:59 -05:00
parent 649ba856f6
commit ecb0db7009

View File

@@ -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);
});
};