Skip to content

Commit

Permalink
Fix search input not reacting to user input on mobile devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eboubaker committed May 15, 2024
1 parent 0b5d789 commit 5658e1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,14 @@
<span aria-hidden="true">&times;</span>
</button>
</span>

<!--
Note: v-model does not work properly on mobile, we update search manually
see: https://github.com/vuejs/vue/issues/9299
-->
<input
ref="search"
v-model="search"
:value="search"
@input="event => (search = event.target.value)"
@keydown.delete="maybeDeleteValue"
@keyup.esc="onEscape"
@keydown.up.prevent="typeAheadUp"
Expand Down

0 comments on commit 5658e1f

Please sign in to comment.