Skip to content

Commit

Permalink
fix: fix select() deprecated #2
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 13, 2024
1 parent 52d234e commit 6410b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweaks/Forms/CopyFieldNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(document).ready(function () {
function copyToClipboard(string) {
const $temp = $('<input type="text" value="' + string + '">');
$("body").append($temp);
$temp.select();
$temp[0].select();
document.execCommand("copy");
$temp.remove();
}
Expand Down

0 comments on commit 6410b8f

Please sign in to comment.