mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user