fix: add textarea autofocus
parent
1297dac4c9
commit
abd5ff9043
|
@ -55,7 +55,12 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.resizeTextarea()
|
this.$nextTick(() => {
|
||||||
|
this.resizeTextarea()
|
||||||
|
if (this.autoFocus) {
|
||||||
|
this.focus()
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleKeyDown (e) {
|
handleKeyDown (e) {
|
||||||
|
|
Loading…
Reference in New Issue