diff --git a/commitlint.config.js b/commitlint.config.js index 4fedde6daf..47fe5bb1ca 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,6 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'header-max-length': [1, 'always', 150] + } +} 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 }