I suppose SOME browsers don't do this by default...

This commit is contained in:
Henry Jameson 2018-12-19 01:23:52 +03:00
parent ae7b96abbf
commit afa2baec0c

View File

@ -32,6 +32,8 @@ const PostStatusForm = {
},
mounted () {
this.resize(this.$refs.textarea)
const textLength = this.$refs.textarea.value.length
this.$refs.textarea.setSelectionRange(textLength, textLength)
if (this.replyTo) {
this.$refs.textarea.focus()