aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToromino <d.buchholz@toromino.de>2018-08-05 19:17:11 +0000
committerToromino <d.buchholz@toromino.de>2018-08-05 19:17:11 +0000
commitfd484a1a628c29bcd0bed6b68488ee28b5497fd0 (patch)
tree4c876055725830e89c17f24d91992d3b19597579
parent32fd108e97de8a1e1201bcc31f70af9ace77e517 (diff)
Textarea is now focused when replying
-rw-r--r--src/components/post_status_form/post_status_form.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 4f4c6aca..b1a1acb7 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -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