forked from AkkomaGang/akkoma-fe
review
This commit is contained in:
parent
9dbafa4c78
commit
82464b3a7e
2 changed files with 3 additions and 2 deletions
|
@ -60,7 +60,7 @@ const EmojiInput = {
|
||||||
highlighted: 0,
|
highlighted: 0,
|
||||||
caret: 0,
|
caret: 0,
|
||||||
focused: false,
|
focused: false,
|
||||||
blurTimeout: false
|
blurTimeout: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -186,6 +186,7 @@ const EmojiInput = {
|
||||||
onFocus (e) {
|
onFocus (e) {
|
||||||
if (this.blurTimeout) {
|
if (this.blurTimeout) {
|
||||||
clearTimeout(this.blurTimeout)
|
clearTimeout(this.blurTimeout)
|
||||||
|
this.blurTimeout = null
|
||||||
}
|
}
|
||||||
|
|
||||||
this.focused = true
|
this.focused = true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div
|
<div
|
||||||
v-for="(suggestion, index) in suggestions"
|
v-for="(suggestion, index) in suggestions"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click.stop.prevent="(e) => onClick(e, suggestion)"
|
@click.stop.prevent="onClick($event, suggestion)"
|
||||||
class="autocomplete-item"
|
class="autocomplete-item"
|
||||||
:class="{ highlighted: suggestion.highlighted }"
|
:class="{ highlighted: suggestion.highlighted }"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue