Merge branch 'feature/focus_reply_form' into 'develop'

Focus textarea when clicking "reply"

See merge request pleroma/pleroma-fe!298
This commit is contained in:
lambda 2018-08-12 10:48:08 +00:00
commit db6ff4824a
1 changed files with 4 additions and 0 deletions

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