Currently the v-select change event will fires multiple times during user typing keywords.
Is there any event will be only fired if user has select an option or press Enter to select an option.
I don't want the change event be fired during user typing keywords.
-
input is total same as changehuan feng– huan feng2022-09-14 07:39:18 +00:00Commented Sep 14, 2022 at 7:39
Add a comment
|
2 Answers
Unfortunately, it looks like the change event only has a parameter that is the value of selected option. There is not event passed through for you to check what actually raised the change event. However, looking at the link above, there are other events you can use.
There is a keydown event listed here that you might be able to leverage. It takes in a keyboard event, you should be able to check what keyboard event was raise i.e. 'Enter'. There are also other events such as mousedown or mouseup.
1 Comment
huan feng
yes, currently i choose to wrap the handler in a debounce method