-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(VCombobox): do not add search to list when selecting items with keyboard #9866
Conversation
Hey @haggys22, TravisBuddy Request Identifier: c7a9b3c0-3607-11ea-b480-9fec542541c3 |
For some reason the test
fails, but inspecting a VSelect with Vue devtools shows that |
After triggering `click` the `VMenu` needs one tick to activate, therefore the `keydown.down` event during the same tick will be passed to the still inactive menu und not update the `listIndex`. Waiting for the next tick fixes this as the menu will be active afterwards
|
This reverts commit 86fefaa.
With my latest changes the v1.5.18 behaviour is restored, i.e. after pressing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a corresponding unit test for this, thank you!
Description
There was a timing issue with
this.$nextTick
, triggering the selection twice: once for the selectedVMenu
item and once for the search term when the menu index is-1
.See #8841 (comment) for the code execution order without this fix.
Motivation and Context
This fixes #8841. Also the workaround for #8842 works again.
How Has This Been Tested?
visually
Markup
Types of changes
Checklist:
master
for bug fixes and documentation updates,dev
for new features and breaking changes).