Skip to content

Commit 18d9a3b

Browse files
authored
Apparently needed in some browsers if text is offscreen
1 parent 6331b73 commit 18d9a3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class Choosealicense {
111111
textarea.style.left = '-9999px';
112112
document.body.appendChild(textarea);
113113

114+
textarea.focus();
114115
textarea.select();
115116
textarea.setSelectionRange(0, textarea.value.length);
116117

0 commit comments

Comments
 (0)