aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-12-19 01:23:52 +0300
committerHenry Jameson <me@hjkos.com>2018-12-20 07:17:54 +0300
commitafa2baec0cc57fd0beb3aac26048717569d5b116 (patch)
tree803b167be5c3f0317f20b85aed7e7502dcd29c3c /src
parentae7b96abbf0c027f0f746ca8f83d06b7ecf2d925 (diff)
I suppose SOME browsers don't do this by default...
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js2
1 files changed, 2 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 fa994c87..46dcc8a6 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -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()