Textarea is now focused when replying

This commit is contained in:
Toromino 2018-08-05 19:17:11 +00:00
parent 32fd108e97
commit fd484a1a62
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ const PostStatusForm = {
},
mounted () {
this.resize(this.$refs.textarea)
if (this.replyTo) {
this.$refs.textarea.focus()
}
},
data () {
const preset = this.$route.query.message