diff --git a/components/input/TextArea.jsx b/components/input/TextArea.jsx index 4c2106cb9..2fdd2800d 100644 --- a/components/input/TextArea.jsx +++ b/components/input/TextArea.jsx @@ -55,7 +55,12 @@ export default { }, }, mounted () { - this.resizeTextarea() + this.$nextTick(() => { + this.resizeTextarea() + if (this.autoFocus) { + this.focus() + } + }) }, methods: { handleKeyDown (e) {