We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
select()
1 parent f47a2e9 commit 655655cCopy full SHA for 655655c
docs/_static/link_gen/link.js
@@ -286,6 +286,7 @@ function linkMain() {
286
287
function copyLink(elementId) {
288
var copyText = document.getElementById(elementId);
289
- copyText.focus();
+ copyText.select();
290
+ copyText.setSelectionRange(0, copyText.value.length);
291
navigator.clipboard.writeText(copyText.value);
292
}
0 commit comments