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 using FilterableMultiSelect with the selectedItems items prop, which makes it a controlled component – at least that would be my expectation. however:
I still need initialSelectedItems to pre-select items (why?)
more importantly: changing the selected data externally (via useState hook) does not seem change the component state
Package
@carbon/react
Browser
Chrome
Package version
1.3.0
React version
17, 18
Description
I'm using
FilterableMultiSelect
with theselectedItems
items prop, which makes it a controlled component – at least that would be my expectation. however:initialSelectedItems
to pre-select items (why?)useState
hook) does not seem change the component stateReproduction/example
https://stackblitz.com/edit/github-cpq1kc?file=src%2FApp.jsx
Steps to reproduce
FilterableMultiSelect
component itselfFilterableMultiSelect
component does not updateCode of Conduct
The text was updated successfully, but these errors were encountered: