Skip to content

Commit 01463c2

Browse files
committed
Editor: always refocus CM textarea on blur
1 parent feedc3c commit 01463c2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

editor/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@
189189
const ta = document.querySelector('.CodeMirror textarea');
190190
if (ta) {
191191
ta.addEventListener('blur', e => {
192-
if (e.relatedTarget && !e.relatedTarget.closest('.CodeMirror')) {
193-
setTimeout(() => ta.focus(), 0);
194-
}
192+
setTimeout(() => ta.focus(), 0);
195193
});
196194
}
197195
}, 300);

0 commit comments

Comments
 (0)