Skip to content
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 not showing correct highlight #16741

Conversation

preetibansalui
Copy link
Contributor

Closes #16474

Combobox not showing correct highlight

Testing / Reviewing

  1. Open combobox and select an option, eg - 'option 2'
  2. It should display 'option 2' in input field.
  3. Now change input text to 'option', it should highlight the loosely match item from options.
  4. Blur the input by clicking outside of input field
  5. now open the combobox again, it should highlight the 'option 2' and input text should be 'option 2' as well.

@preetibansalui preetibansalui requested a review from a team as a code owner June 12, 2024 10:41
Copy link

netlify bot commented Jun 12, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ab75ba7
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/666989065f513b00082cd0d1
😎 Deploy Preview https://deploy-preview-16741--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 12, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit ab75ba7
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66698906a262a0000853ce4d
😎 Deploy Preview https://deploy-preview-16741--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@2nikhiltom 2nikhiltom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great 💯 .

Small query : same behaviour is seen when allowCustomval is set to true. is this expected ?

Screen.Recording.2024-06-17.at.09.09.35.mov
  1. Open combobox and select an option, eg - 'option 2'
  2. It should display 'option 2' in input field.
  3. Now change input text to 'option', it should highlight the loosely match item from options.
  4. Blur the input by clicking outside of input field
  5. now open the combobox again, it should highlight the 'option 2' and input text should be 'option 2' as well.

When allowCustomValue is true, at step 5, should it highlight 'option 2' and also set the input text to 'option 2', or should it keep the custom value instead?

@tay1orjones tay1orjones added this pull request to the merge queue Jun 20, 2024
@preetibansalui preetibansalui added this pull request to the merge queue Jun 21, 2024
Merged via the queue into carbon-design-system:main with commit 757a4af Jun 21, 2024
22 checks passed
@preetibansalui preetibansalui deleted the 16474-combobox-not-showing-correct-highlight branch June 21, 2024 06:51
tay1orjones pushed a commit to tay1orjones/carbon that referenced this pull request Jun 21, 2024
* fix: combobox not showing correct highlight

* fix: removed console
@tay1orjones tay1orjones mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ComboBox not showing the correct highlighted
4 participants