Skip to content

Commit

Permalink
feat: use textare
Browse files Browse the repository at this point in the history
this conserves the new lines when copying the info texts
  • Loading branch information
ESCRI11 committed Jul 9, 2024
1 parent 03ebfda commit ad4c338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/app/R/www/copy-info-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function copyPlotModuleInfo() {
textToCopy += elements[i].innerText + '\n';
}
}
var tempInput = document.createElement('input');
var tempInput = document.createElement('textarea');
tempInput.value = textToCopy.trim();
document.body.appendChild(tempInput);
tempInput.select();
Expand Down

0 comments on commit ad4c338

Please sign in to comment.