|
|
@ -126,7 +126,6 @@ const AutoCompleteInput = {
|
|
|
|
const candidate = this.candidates[this.highlighted]
|
|
|
|
const candidate = this.candidates[this.highlighted]
|
|
|
|
const replacement = candidate.utf || (candidate.screen_name + ' ')
|
|
|
|
const replacement = candidate.utf || (candidate.screen_name + ' ')
|
|
|
|
this.text = Completion.replaceWord(this.text, this.wordAtCaret, replacement)
|
|
|
|
this.text = Completion.replaceWord(this.text, this.wordAtCaret, replacement)
|
|
|
|
this.$emit('input', this.text)
|
|
|
|
|
|
|
|
const el = this.$el.querySelector('textarea') || this.$el.querySelector('input')
|
|
|
|
const el = this.$el.querySelector('textarea') || this.$el.querySelector('input')
|
|
|
|
el.focus()
|
|
|
|
el.focus()
|
|
|
|
this.caret = 0
|
|
|
|
this.caret = 0
|
|
|
|