You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to set a default value for the DataTable / TableToolbarSearch input field. Usually the props are passed down to the child components. In this case it’s the Search component, which offers the defaultValue and value. Unfortunately the TableToolbarSearch component initializes the value property by setting an empty state. Therefore, I can’t set a default value.
What package(s) are you using?
carbon-components
carbon-components-react
v7.3.2
Detailed description
I’m trying to set a default value for the
DataTable
/TableToolbarSearch
input field. Usually the props are passed down to the child components. In this case it’s theSearch
component, which offers thedefaultValue
andvalue
. Unfortunately theTableToolbarSearch
component initializes thevalue
property by setting an empty state. Therefore, I can’t set a default value.Related code line:
carbon/packages/react/src/components/DataTable/TableToolbarSearch.js
Line 46 in 3dabe8f
Steps to reproduce the issue
Additional information
Note: The Sandbox contains a little CSS bug fix for persistant mode, which I've described in #3108 already:
The text was updated successfully, but these errors were encountered: