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