fix autosize

This commit is contained in:
fly_mc 2024-09-18 23:54:51 +08:00
parent b1d27704d8
commit 61c31bfd66

View file

@ -590,8 +590,6 @@ function onCompositionUpdate(ev: CompositionEvent) {
function onCompositionEnd(ev: CompositionEvent) {
imeText.value = '';
nextTick(() => textareaEl.value && autosize.update(textareaEl.value));
}
async function onPaste(ev: ClipboardEvent) {
@ -643,6 +641,7 @@ async function onPaste(ev: ClipboardEvent) {
upload(file, `${fileName}.txt`);
});
}
nextTick(() => textareaEl.value && autosize.update(textareaEl.value));
}