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