Skip to content
Snippets Groups Projects
Commit 82464b3a authored by HJ's avatar HJ :fire:
Browse files

review

parent 9dbafa4c
Branches
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ const EmojiInput = {
highlighted: 0,
caret: 0,
focused: false,
blurTimeout: false
blurTimeout: null
}
},
computed: {
......@@ -186,6 +186,7 @@ const EmojiInput = {
onFocus (e) {
if (this.blurTimeout) {
clearTimeout(this.blurTimeout)
this.blurTimeout = null
}
this.focused = true
......
......@@ -6,7 +6,7 @@
<div
v-for="(suggestion, index) in suggestions"
:key="index"
@click.stop.prevent="(e) => onClick(e, suggestion)"
@click.stop.prevent="onClick($event, suggestion)"
class="autocomplete-item"
:class="{ highlighted: suggestion.highlighted }"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment