Skip to content

Commit f7286a0

Browse files
committed
fix: paste-html fallback to text
1 parent 5695589 commit f7286a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ui/c-input-text/c-input-text.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ function onPasteInputHtml(evt: ClipboardEvent) {
9696
if (!target) {
9797
return false;
9898
}
99-
evt.preventDefault();
10099
const textHtmlData = evt.clipboardData?.getData('text/html');
101100
if (textHtmlData && textHtmlData !== '') {
101+
evt.preventDefault();
102102
value.value = textHtmlData;
103103
return true;
104104
}
@@ -161,8 +161,6 @@ onMounted(() => {
161161
162162
defineExpose({
163163
inputWrapperRef,
164-
textareaRef,
165-
inputRef,
166164
focus,
167165
blur,
168166
});

0 commit comments

Comments
 (0)