diff --git a/src/utils/Ut.js b/src/utils/Ut.js index 8a0866e..872a7d1 100644 --- a/src/utils/Ut.js +++ b/src/utils/Ut.js @@ -93,6 +93,10 @@ export class Ut { */ static copyToClipboard(target) { + if (!target) { + return; + } + const isTextField = target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement; if (navigator.clipboard) {