carbon
carbon copied to clipboard
[Bug]: ExpandableSearch - onChange is not composed with internal handler
Package
@carbon/react
Browser
Chrome
Package version
1.12.0
React version
18.2.0
Description
The ExpandableSearch component defines and passes the onChange
callback to the Search component for tracking its internal state.
This means that parent components have no way of specifying an onChange
callback.
This component seems otherwise useless without the ability to use an onChange
callback to get the current value.
Reproduction/example
https://react.carbondesignsystem.com/?path=/story/components-search--expandable
Steps to reproduce
https://react.carbondesignsystem.com/?path=/story/components-search--expandable
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate problems