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

[Bug]: ExpandableSearch "isExpanded" state cannot be controlled #15147

Closed
2 tasks done
justindm234 opened this issue Nov 10, 2023 · 1 comment · Fixed by #15544
Closed
2 tasks done

[Bug]: ExpandableSearch "isExpanded" state cannot be controlled #15147

justindm234 opened this issue Nov 10, 2023 · 1 comment · Fixed by #15544
Assignees
Labels
component: search role: dev 🤖 severity: 2 User cannot complete task, and/or no workaround type: bug 🐛

Comments

@justindm234
Copy link

Package

@carbon/react

Browser

Chrome, Firefox

Package version

1.42

React version

17.0.2

Description

ExpandableSearch does not honor changes to the isExpanded prop to allow apps to open/close the search programmatically

Reproduction/example

https://codesandbox.io/s/isexpanded-prop-changes-not-honored-vxkysw?file=/src/index.js

Steps to reproduce

  • Define ExpandableSearch component with an isExpanded prop
  • Change the value of the passed isExpanded prop

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

IBM Z Hardware Management Console

Code of Conduct

@tw15egan tw15egan added severity: 2 User cannot complete task, and/or no workaround component: search labels Nov 10, 2023
@justindm234
Copy link
Author

justindm234 commented Nov 16, 2023

I believe this support is needed to implement an accessible active search pattern - I need to be able to keep the ExpandableSearch component expanded when the user moves focus to the results Popover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: search role: dev 🤖 severity: 2 User cannot complete task, and/or no workaround type: bug 🐛
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants