Skip to content
Snippets Groups Projects
Commit d6f9f34a authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'fix/no-autocomplete-in-non-post-forms' into 'develop'

hotfix/this fixes #350 - v-model binding issue

Closes #350

See merge request pleroma/pleroma-fe!573
parents 26954cb3 64fab9d7
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,7 @@ const AutoCompleteInput = {
const candidate = this.candidates[this.highlighted]
const replacement = candidate.utf || (candidate.screen_name + ' ')
this.text = Completion.replaceWord(this.text, this.wordAtCaret, replacement)
this.$emit('input', this.text)
const el = this.$el.querySelector('textarea') || this.$el.querySelector('input')
el.focus()
this.caret = 0
......
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