Update search text when clicking on suggestion

This commit is contained in:
guemax 2024-03-18 19:01:27 +01:00
parent 2733d19856
commit dc8d061b61
No known key found for this signature in database
GPG key ID: 85916548E34D20A0

View file

@ -1,7 +1,12 @@
<template>
<div class="suggestions-container absolute">
<ul>
<li v-for="(suggestion, i) in searchSuggestions" :key="i" @mouseover="onMouseOver(i)">
<li
v-for="(suggestion, i) in searchSuggestions"
:key="i"
@mouseover="onMouseOver(i)"
@click="setSelected(i)"
>
<router-link
class="suggestion"
:class="{ 'suggestion-selected': selected === i }"