Skip to content

Commit

Permalink
Fix blurring workaround when tabbing on Firefox
Browse files Browse the repository at this point in the history
Apparently Firefox now executes setTimeout(fn,0) sync instead of async
(closes #4991)
  • Loading branch information
bhousel committed Apr 19, 2018
1 parent f40e06d commit cdc02e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui/raw_tag_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cdc02e0

Please sign in to comment.