diff options
| author | Toromino <d.buchholz@toromino.de> | 2018-08-05 19:17:11 +0000 |
|---|---|---|
| committer | Toromino <d.buchholz@toromino.de> | 2018-08-05 19:17:11 +0000 |
| commit | fd484a1a628c29bcd0bed6b68488ee28b5497fd0 (patch) | |
| tree | 4c876055725830e89c17f24d91992d3b19597579 /src | |
| parent | 32fd108e97de8a1e1201bcc31f70af9ace77e517 (diff) | |
Textarea is now focused when replying
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 4 |
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 |
