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(ExpandableSearch): allow isExpanded state to be controlled #15544

Merged

Conversation

tw15egan
Copy link
Member

Closes #15147

Fixes an issue that was causing the ExpandableSearch not to update when the isExpanded prop was changed.

Changelog

New

  • Added a useEffect so that the Search is updated if the isExpanded prop is changed.
  • A test story to verify it works

Testing / Reviewing

Ensure the test story works as expected, and that the existing Search and ExpandableSearch stories function the same

@tw15egan tw15egan requested a review from a team as a code owner January 16, 2024 19:33
Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 4051914
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/65a6da0f28a85600080292af
😎 Deploy Preview https://deploy-preview-15544--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
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@guidari guidari left a comment

Choose a reason for hiding this comment

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

LGTM!

@guidari guidari added this pull request to the merge queue Jan 17, 2024
Merged via the queue into carbon-design-system:main with commit 07efa91 Jan 17, 2024
22 of 23 checks passed
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]: ExpandableSearch "isExpanded" state cannot be controlled
3 participants