From cdc02e0f4239c0758cbd9f5e96c7119f6591b420 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 18 Apr 2018 22:01:34 -0400 Subject: [PATCH] Fix blurring workaround when tabbing on Firefox Apparently Firefox now executes setTimeout(fn,0) sync instead of async (closes #4991) --- modules/ui/raw_tag_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/raw_tag_editor.js b/modules/ui/raw_tag_editor.js index 9e5bccc70..4ec326fc2 100644 --- a/modules/ui/raw_tag_editor.js +++ b/modules/ui/raw_tag_editor.js @@ -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); } }