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: cannot clear initial combobox value in fully controlled component #17324

Conversation

preetibansalui
Copy link
Contributor

Closes #16856

Fixed - not able to clear initial state in a fully controlled component

Changelog

Added a new state in stateReducer

Testing / Reviewing

It should call onChange in initial change as well when component is fully controlled.

Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c54ef88
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66e1a081bcebe30008230235
😎 Deploy Preview https://deploy-preview-17324--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 Sep 4, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit c54ef88
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66e1a0816a7f4100087e5725
😎 Deploy Preview https://deploy-preview-17324--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.

@preetibansalui preetibansalui changed the title fix: initial state issue fix: cannot clear initial combobox value in fully controlled component Sep 4, 2024
@riddhybansal riddhybansal added this pull request to the merge queue Sep 16, 2024
Merged via the queue into carbon-design-system:main with commit d8e0045 Sep 16, 2024
23 checks passed
guidari pushed a commit to guidari/carbon that referenced this pull request Sep 18, 2024
carbon-design-system#17324)

* fix: initial state issue

* fix: added test case

* fix: test case

* fix: test case

* fix: ci checks fail

* fix: merge conflict issue

---------

Co-authored-by: Taylor Jones <[email protected]>
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]: Cannot clear initial combobox value with fully controlled component
4 participants