mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 15:27:27 +00:00
Fixed the TS error
This commit is contained in:
@@ -378,11 +378,11 @@ export default function Dashboard() {
|
|||||||
* This function copies the project id to the clipboard
|
* This function copies the project id to the clipboard
|
||||||
*/
|
*/
|
||||||
function copyToClipboard() {
|
function copyToClipboard() {
|
||||||
const copyText = document.getElementById('myInput');
|
const copyText = document.getElementById('myInput') as HTMLInputElement;
|
||||||
|
|
||||||
if (copyText) {
|
if (copyText) {
|
||||||
copyText.select();
|
copyText.select();
|
||||||
// copyText.setSelectionRange(0, 99999); // For mobile devices
|
copyText.setSelectionRange(0, 99999); // For mobile devices
|
||||||
|
|
||||||
navigator.clipboard.writeText(copyText.value);
|
navigator.clipboard.writeText(copyText.value);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user