Skip to content

Commit

Permalink
fix(Textarea): autosize nextTick null err (#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
nined9 authored Nov 23, 2023
1 parent ea70a50 commit f7a7219
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 @@ -111,6 +111,7 @@ export default mixins(Vue as VueConstructor<Textarea>, classPrefixMixins).extend

methods: {
adjustTextareaHeight() {
if (!this.$refs.refTextareaElem) return;
if (this.autosize === true) {
this.textareaStyle = calcTextareaHeight(this.$refs.refTextareaElem as HTMLTextAreaElement);
} else if (this.autosize && typeof this.autosize === 'object') {
Expand Down

0 comments on commit f7a7219

Please sign in to comment.