Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit f706e8c

Browse files
committed
Fix focusing editor when closing dialog with Escape in Firefox
1 parent eb963b2 commit f706e8c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/regions.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function nav2() {
9191

9292
if (tempLoc == 'edit') {
9393
// Focus editor
94-
editor.focus();
94+
setTimeout(function() {
95+
editor.focus();
96+
});
9597
} else if (tempLoc != 'welcome-edit-mode') {
9698
// Focus first input
9799
setTimeout(function() {

0 commit comments

Comments
 (0)