carbon icon indicating copy to clipboard operation
carbon copied to clipboard

[Bug]: ExpandableSearch - onChange is not composed with internal handler

Open gi opened this issue 2 years ago • 0 comments

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

gi avatar Sep 22 '22 10:09 gi