From 77403f62ec441d6bce37ce0a4c796e80dca2c55d Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 18 Apr 2013 12:49:26 -0400 Subject: [PATCH] force blur and tag change when closing inspector Firefox doesn't fire a blur if the element is just removed from the dom. --- js/id/ui/inspector.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index 2b9d6c121..bca353227 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -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() {