diff --git a/src/ui/c-input-text/c-input-text.vue b/src/ui/c-input-text/c-input-text.vue index bd6e24b0..88d45d3f 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; } @@ -161,8 +161,6 @@ onMounted(() => { defineExpose({ inputWrapperRef, - textareaRef, - inputRef, focus, blur, });