首页 > 解决方案 > vue select field get keypress value

问题描述

I'm using vue-search-select for implementing autocomplete on select field. Now I want to get the input user enter to search from select field. I tried using keyup event but didn't work. Is there any way to get that input user enter?

<model-list-select
 :list="activity_list"
 v-model="business_activity"
 option-value="id"
 :custom-text="optiontext"
 @input="onChange($event)"
 @keyup="keyhandle($event)"
>
</model-list-select>

标签: javascriptvue.jsautocomplete

解决方案


尝试替换@keyup="keyhandle($event)"@keyup.enter="keyhandle($event)"


推荐阅读