From fd484a1a628c29bcd0bed6b68488ee28b5497fd0 Mon Sep 17 00:00:00 2001 From: Toromino Date: Sun, 5 Aug 2018 19:17:11 +0000 Subject: [PATCH 1/2] Textarea is now focused when replying --- src/components/post_status_form/post_status_form.js | 4 ++++ 1 file changed, 4 insertions(+) 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 From 88a81406e3feaa4241a7f76278b2c4b126e2496b Mon Sep 17 00:00:00 2001 From: Toromino Date: Sun, 5 Aug 2018 19:41:34 +0000 Subject: [PATCH 2/2] Remove trailing whitespace --- src/components/post_status_form/post_status_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index b1a1acb7..dcb2c6e3 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -31,7 +31,7 @@ const PostStatusForm = { }, mounted () { this.resize(this.$refs.textarea) - + if (this.replyTo) { this.$refs.textarea.focus() }