mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-07-25 22:16:07 +00:00
fix search dropdown
This commit is contained in:
@@ -6,10 +6,16 @@
|
||||
menu-class="search-menu"
|
||||
option-class="search-option"
|
||||
>
|
||||
<template #display="{ toggle, search }">
|
||||
<template #display="{ toggle, setSearch }">
|
||||
<div class="search-input" @click="toggle">
|
||||
<i class="search-input-icon fas fa-search"></i>
|
||||
<input type="text" v-model="keyword" placeholder="Search" @focus="toggle" @input="search.value = keyword" />
|
||||
<input
|
||||
type="text"
|
||||
v-model="keyword"
|
||||
placeholder="Search"
|
||||
@focus="toggle"
|
||||
@input="setSearch(keyword)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #option="{ option }">
|
||||
|
||||
Reference in New Issue
Block a user