-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Bug]: ComboBox not showing the correct highlighted #16474
Comments
@preetibansalui could you look into this and determine what we intend the ux of the highlightedIndex should be in this case? |
There's a few pieces here worth parsing out. When
So really it boils down to anytime the dropdown is open (and I found another example where this isn't working correctly: CleanShot.2024-05-20.at.08.58.49.mp4 |
Package
@carbon/react, @carbon/styles, carbon-components, carbon-components-react, @carbon/colors
Browser
No response
Package version
"@carbon/charts-react": "1.15.6", "@carbon/colors": "11.21.0", "@carbon/feature-flags": "0.19.0", "@carbon/ibm-products": "2.36.0", "@carbon/icons-react": "10.49.0", "@carbon/layout": "11.21.0", "@carbon/react": "1.56.0", "@carbon/styles": "1.56.0", "@carbon/themes": "11.34.0", "@carbon/type": "11.26.0", "carbon-components": "10.50.0", "carbon-components-react": "7.50.0",
Description
The highlight is not on the selection even though it knows it is selected
Screenshots
Screen.Recording.2024-05-14.at.4.39.51.PM.mov
I am able to replicate this on the storybook. Looks like when there is an alteration to the name when it has a common name type in the dropdown list it breaks the highlight selection
Screen.Recording.2024-05-14.at.4.37.06.PM.mov
Steps to reproduce
Go here https://react.carbondesignsystem.com/?path=/story/components-combobox--with-layer
Then select
Option 2
.Remove the 2, then click out of the ComboBox. It will default back to
Option 2
When we click back into the ComboBox and it re-opens, the highlight selection is off.
Code of Conduct
The text was updated successfully, but these errors were encountered: