-
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
chore(combobox): refactor to use useCombobox #16283
chore(combobox): refactor to use useCombobox #16283
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Hey Preeti! Sorry for the late review on this.
A few things I noticed
1 - The ComboBox only opens when the icon is clicked. it should open if is clicked in the anywhere inside the input.
2 - When opening the Combobox with keyboard and searching for "3" (which is the disabled option) and after that pressing Enter, the Combobox is closed. It should stay open.
Also looks like is not announcing the disabled option in the VO when searching.
I'm happy to pair up to check any of those cases, if you want.
It would be awesome if as these are fixed, new test cases could be written to cover this functionality and ensure it continues to work as expected |
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.
LGTM! 🚀
Let's open an issue to track the VO not reading the disabled item
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.
LGTM once the conflicts are fixed 🎉
2c63069
Closes #14684
Closes #15927
Refactored the code to use usecombobox
Changelog
Changed
Code refactored
Testing / Reviewing
It should work in similar ways as existing combobox.