From 58a859b01453e65a4168a2ed0f8618e9b096bc0a Mon Sep 17 00:00:00 2001 From: Magnus Hovland Hoff Date: Mon, 8 Oct 2018 07:53:41 +0200 Subject: [PATCH] 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 --- assets/script.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/assets/script.js b/assets/script.js index aa9f0db..571a17c 100644 --- a/assets/script.js +++ b/assets/script.js @@ -89,8 +89,6 @@ function openEditor() { }); updateFormEnabledState(); - textarea.setSelectionRange(textarea.value.length, textarea.value.length); - if (state.hasBeenOpen) return; state.hasBeenOpen = true;