Skip to content

Commit 832d187

Browse files
committed
fix(input): [input] fixed the error when using v-if to switch back and forth after configuring the displayOnly attribute
1 parent 7ad17d8 commit 832d187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/renderless/src/input/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const resizeTextarea =
270270

271271
const { autosize, type } = parent
272272

273-
if (type !== 'textarea') {
273+
if (type !== 'textarea' || !vm.$refs.textarea) {
274274
return
275275
}
276276

0 commit comments

Comments
 (0)