From 3ca488e17048f0fe396c11c8e79798418a010272 Mon Sep 17 00:00:00 2001 From: ShareVB Date: Sun, 15 Dec 2024 19:37:56 +0100 Subject: [PATCH] fix: paste-html fallback to text --- src/ui/c-input-text/c-input-text.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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