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:
Bryan Housel
2018-04-18 22:01:34 -04:00
parent f40e06dfb4
commit cdc02e0f42
+2 -2
View File
@@ -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);
}
}