diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-14 20:44:03 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-25 12:04:53 +0300 |
commit | 769ddf79c500df4ba3e7b72cc80c15f46ae19abe (patch) | |
tree | b4d77e7236bed787be4eafa5343225e2ee91caa3 /src | |
parent | 82288c4607816f943b67eb4c56f67977be03f700 (diff) |
Fix keyboard navigation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Mention/List.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Mention/List.vue b/src/components/Mention/List.vue index 2e54d732e..f376d33c4 100644 --- a/src/components/Mention/List.vue +++ b/src/components/Mention/List.vue @@ -3,12 +3,13 @@ <template v-if="items.length"> <div v-for="({ id, label }, index) in items" :key="index" - :class="id === selectedIndex ? 'highlight' : null"> + :class="index === selectedIndex ? 'highlight' : null"> <AutoCompleteResult :id="id" :label="label" icon="icon-user" source="users" - @mouseover.native="selectedIndex = id" + :class="id === selectedIndex ? 'highlight' : null" + @mouseover.native="selectedIndex = index" @click.native="selectItem(index)" /> </div> </template> |