forked from AkkomaGang/akkoma-fe
resolve focus issue in the auto-complete for name field
This commit is contained in:
parent
98c27fd812
commit
19dd36945a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ const AutoCompleteInput = {
|
|||
},
|
||||
replace (replacement) {
|
||||
this.$emit('input', Completion.replaceWord(this.value, this.wordAtCaret, replacement))
|
||||
const el = this.$el.querySelector('textarea')
|
||||
const el = this.$el.querySelector('textarea') || this.$el.querySelector('input')
|
||||
el.focus()
|
||||
this.caret = 0
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue