Skip to content

refactor: use isDisabledItem throughout ComboBox#22009

Merged
sangeethababu9223 merged 3 commits into
carbon-design-system:mainfrom
adamalston:n/a-disabled-combo-box
Apr 16, 2026
Merged

refactor: use isDisabledItem throughout ComboBox#22009
sangeethababu9223 merged 3 commits into
carbon-design-system:mainfrom
adamalston:n/a-disabled-combo-box

Conversation

@adamalston

Copy link
Copy Markdown
Contributor

No issue.

Used isDisabledItem throughout ComboBox.

Changelog

New

  • Added test coverage for partial input value matching with disabled items in ComboBox.

Changed

  • Used isDisabledItem throughout ComboBox.

Testing / Reviewing

yarn test packages/react/src/components/ComboBox/ComboBox-test.js

Reverting the changes will not cause the test to fail, as they do not affect behavior. ComboBox should continue to behave the same as before. These updates are just a refactor, and the new test fills a gap in a related scenario to help ensure no regressions.

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@netlify

netlify Bot commented Apr 12, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 75704bb
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69de708b80b7d40009f22dc3
😎 Deploy Preview https://deploy-preview-22009--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 project configuration.

@netlify

netlify Bot commented Apr 12, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 75704bb
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69de708b81ea2d0008f048ad
😎 Deploy Preview https://deploy-preview-22009--v11-carbon-web-components.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 project configuration.

@codecov

codecov Bot commented Apr 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.90%. Comparing base (54509f5) to head (75704bb).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22009      +/-   ##
==========================================
- Coverage   94.93%   94.90%   -0.03%     
==========================================
  Files         541      541              
  Lines       45256    45254       -2     
  Branches     6393     6336      -57     
==========================================
- Hits        42963    42949      -14     
- Misses       2161     2173      +12     
  Partials      132      132              
Flag Coverage Δ
main-packages 89.16% <100.00%> (-0.01%) ⬇️
web-components 97.70% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devadula-nandan devadula-nandan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@sangeethababu9223 sangeethababu9223 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @adamalston,
This looks good to me. One suggestion would be to rename the const from disabledItems to items, so that the intent is more clear.

Comment thread packages/react/src/components/ComboBox/ComboBox-test.js Outdated
@sangeethababu9223 sangeethababu9223 added this pull request to the merge queue Apr 16, 2026
Merged via the queue into carbon-design-system:main with commit a4a17c4 Apr 16, 2026
38 of 39 checks passed
@adamalston adamalston deleted the n/a-disabled-combo-box branch April 16, 2026 13:13
MarianaAa01 pushed a commit to MarianaAa01/carbon that referenced this pull request May 29, 2026
…m#22009)

* refactor: use isDisabledItem throughout ComboBox

* refactor: update test variable name
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.

3 participants