mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Update search text when clicking on suggestion
This commit is contained in:
parent
2733d19856
commit
dc8d061b61
1 changed files with 6 additions and 1 deletions
|
@ -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 }"
|
||||||
|
|
Loading…
Reference in a new issue