-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(combobox): correct behavior of selection onChange with filtered items #16835
fix(combobox): correct behavior of selection onChange with filtered items #16835
Conversation
Am not sure but I could not see the deploy preview for this PR 😮 |
@riddhybansal not sure why the deploy preview didn't post a github comment, but you can click the link directly from the checks on the PR. |
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.
Working as expected for me, and new tests look good 👍
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.
Working as expected! LGTM
22dea80
…tems (carbon-design-system#16835) * fix(combobox): onChange returns the proper item with shouldFilterItem * WIP * fix(combobox): use filterItems for items * fix(combobox): correct selection when filtered items
Closes #16630
Closes #16829
This corrects selection and onChange behavior when the listbox items are filtered and one is selected.
Changelog
New
cognateItems
to help test the partial search functionality in ComboboxChanged
filterItems()
instead of using the baseitems
Testing / Reviewing
apple
pineapple
- selection should be correct, onChange in the actions pane should fire once with the proper value