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
  • Loading branch information
zzcr committed Nov 15, 2024
1 parent 7ad17d8 commit 832d187
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 832d187

Please sign in to comment.