diff --git a/src/ui/c-input-text/c-input-text.vue b/src/ui/c-input-text/c-input-text.vue index 9b540b2c..cef739ed 100644 --- a/src/ui/c-input-text/c-input-text.vue +++ b/src/ui/c-input-text/c-input-text.vue @@ -96,9 +96,9 @@ function onPasteInputHtml(evt: ClipboardEvent) { if (!target) { return false; } - evt.preventDefault(); const textHtmlData = evt.clipboardData?.getData('text/html'); if (textHtmlData && textHtmlData !== '') { + evt.preventDefault(); value.value = textHtmlData; return true; } @@ -364,4 +364,4 @@ defineExpose({ } } } - + \ No newline at end of file