Skip to content

Commit

Permalink
fix(input): [input] fixed the error when using v-if to switch back an…
Browse files Browse the repository at this point in the history
…d forth after configuring the displayOnly attribute (#2527)
  • Loading branch information
zzcr authored Nov 15, 2024
1 parent 192f152 commit 60ad8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderless/src/input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const resizeTextarea =

const { autosize, type } = parent

if (type !== 'textarea') {
if (type !== 'textarea' || !vm.$refs.textarea) {
return
}

Expand Down

0 comments on commit 60ad8c2

Please sign in to comment.