Skip to content

Commit

Permalink
Completely disable setting focus.
Browse files Browse the repository at this point in the history
setSelectionRange causes Safari to set focus to the element. Trying to get rid of distracting focus changes that pops up an on-screen keyboard
  • Loading branch information
maghoff committed Oct 8, 2018
1 parent 318273a commit 58a859b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ function openEditor() {
});
updateFormEnabledState();

textarea.setSelectionRange(textarea.value.length, textarea.value.length);

if (state.hasBeenOpen) return;
state.hasBeenOpen = true;

Expand Down

0 comments on commit 58a859b

Please sign in to comment.