Skip to content

Commit

Permalink
fix(textarea ): calculate the height of textarea after leaving the pa…
Browse files Browse the repository at this point in the history
…ge (#4539)

* fix(textarea ): calculate the height of textarea after leaving the page

close #4472

* chore: fix

---------

Co-authored-by: wū yāng <uyarnchen@gmail.com>
  • Loading branch information
RSS1102 and uyarn authored Sep 25, 2024
1 parent 1aa43f2 commit 8368ab9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textarea/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default defineComponent({

const formItem = inject(FormItemInjectionKey, undefined);
const emitBlur = (e: FocusEvent) => {
if (!e.target) return;
adjustTextareaHeight();
focused.value = false;
props.onBlur?.(innerValue.value, { e });
Expand Down

0 comments on commit 8368ab9

Please sign in to comment.