Textarea is now focused when replying

This commit is contained in:
Toromino 2018-08-05 19:17:11 +00:00
parent 32fd108e97
commit fd484a1a62

View File

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