mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Fix blurring workaround when tabbing on Firefox
Apparently Firefox now executes setTimeout(fn,0) sync instead of async (closes #4991)
This commit is contained in:
@@ -321,11 +321,11 @@ export function uiRawTagEditor(context) {
|
||||
// Wrapped in a setTimeout in case it's being called from a blur
|
||||
// handler. Without the setTimeout, the call to `content` would
|
||||
// wipe out the pending value change.
|
||||
setTimeout(function() {
|
||||
window.setTimeout(function() {
|
||||
_showBlank = true;
|
||||
content(wrap);
|
||||
list.selectAll('li:last-child input.key').node().focus();
|
||||
}, 0);
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user