Completely disable setting focus.

setSelectionRange causes Safari to set focus to the element. Trying to get rid of distracting focus changes that pops up an on-screen keyboard
This commit is contained in:
Magnus Hovland Hoff 2018-10-08 07:53:41 +02:00
parent 318273a75d
commit 58a859b014

View file

@ -89,8 +89,6 @@ function openEditor() {
});
updateFormEnabledState();
textarea.setSelectionRange(textarea.value.length, textarea.value.length);
if (state.hasBeenOpen) return;
state.hasBeenOpen = true;