diff --git a/packages/renderless/src/input/index.ts b/packages/renderless/src/input/index.ts index 4fc2c075fe..71ec49a1cc 100644 --- a/packages/renderless/src/input/index.ts +++ b/packages/renderless/src/input/index.ts @@ -270,7 +270,7 @@ export const resizeTextarea = const { autosize, type } = parent - if (type !== 'textarea') { + if (type !== 'textarea' || !vm.$refs.textarea) { return }