force blur and tag change when closing inspector

Firefox doesn't fire a blur if the element is just
removed from the dom.
This commit is contained in:
Ansis Brammanis
2013-04-18 12:49:26 -04:00
parent ab56cc5207
commit 77403f62ec

View File

@@ -104,6 +104,11 @@ iD.ui.Inspector = function(context, entity) {
}
inspector.close = function(selection) {
// Blur focused element so that tag changes are dispatched
// See #1295
document.activeElement.blur();
selection.transition()
.style('right', '-500px')
.each('end', function() {