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> <template>
<div class="suggestions-container absolute"> <div class="suggestions-container absolute">
<ul> <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 <router-link
class="suggestion" class="suggestion"
:class="{ 'suggestion-selected': selected === i }" :class="{ 'suggestion-selected': selected === i }"