Skip to content
Snippets Groups Projects
Commit afa2baec authored by HJ's avatar HJ :fire:
Browse files

I suppose SOME browsers don't do this by default...

parent ae7b96ab
No related branches found
No related tags found
1 merge request!430Fix textarea not resizing correctly and probably cursor position
Pipeline #5571 passed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment