admin管理员组文章数量:1278985
If I don't select from the options, I want to search by query when I press enter.
I tried html element id keyup event what should i do?
<UInputMenu
v-model="query"
size="lg"
:search="search"
class="border-[#CECECE] rounded-lg bg-[#F5F5F5] sm:w-[263px] placeholder:text-[#A8A8A8] absolute flex items-center justify-center"
:class="
userProfile?.id ? 'w-[calc(100%-80px)]' : 'w-[calc(100%-210px)]'
"
placeholder="search product..."
selected-icon=""
:ui="{
icon: {
trailing: {
pointer: '',
padding: {
lg: '!px-1',
},
},
},
}"
@update:model-value="handleSearch"
>
<template #trailing>
<UButton
icon="i-heroicons-magnifying-glass"
variant="soft"
class="min-w-14 justify-center"
@click="handleSearch(query)"
/>
</template>
</UInputMenu>
本文标签: javascriptHow to stop the selecting first suggestionStack Overflow
版权声明:本文标题:javascript - How to stop the selecting first suggestion? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741259441a2367324.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论