Replies: 1 comment 1 reply
-
preventDefault mousedown on the list items |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I notice both Vuetify and MaterialUI have an awesome feature of their autocomplete inputs... when you click an item, the input does NOT lose focus.
I'm building my own autocomplete feature (not Vuetify) and I would love to add this.
I've looked online for various solutions on how to make a click event NOT let an input blur, and all the solutions have their own issues, ie:
mousedown
/touchstart
instead ofclick
... this prevents scrolling the autocomplete with your fingerI've looked through the source of Vuetify and it's not immediately clear how this is being done... https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VAutocomplete/VAutocomplete.ts
Beta Was this translation helpful? Give feedback.
All reactions