this fixes #350 - v-model binding issue

This commit is contained in:
Xiaofeng An 2019-02-12 13:55:00 -05:00
parent 26954cb3dd
commit 64fab9d7bc
1 changed files with 1 additions and 0 deletions

View File

@ -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