diff options
| author | Xiaofeng An <futureweb2020@yandex.com> | 2019-02-12 13:55:00 -0500 |
|---|---|---|
| committer | Xiaofeng An <futureweb2020@yandex.com> | 2019-02-12 13:55:00 -0500 |
| commit | 64fab9d7bcd3785506cd5c2a8869eb9162d9e9ad (patch) | |
| tree | 303b87b214b80c81a0d3280be874d7524348d5c3 | |
| parent | 26954cb3dd07e7f6a35fb843bee8e84334385424 (diff) | |
this fixes #350 - v-model binding issue
| -rw-r--r-- | src/components/autocomplete_input/autocomplete_input.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/autocomplete_input/autocomplete_input.js b/src/components/autocomplete_input/autocomplete_input.js index 2a959fd1..404a8cdb 100644 --- a/src/components/autocomplete_input/autocomplete_input.js +++ b/src/components/autocomplete_input/autocomplete_input.js @@ -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 |
