Closed tahaimt closed 5 years ago
Hi 👋 thank you for reporting - As the name says, initialSelectedItem
is for the initial state only and not for subsequent updates (which means programmatic control over the list of selected items). For such advanced use case, I'd suggest using the underlying presentational components behind <MultiSelect>
for now (you'll need #4249 for that).
Are underlying presentational components exposed in recent versions?
No, but feel free to enter a PR for that!
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions.
As there's been no activity since this issue was marked as stale, we are auto-closing it.
What package(s) are you using?
carbon-components-react
7.8.0-alpha.5887Detailed description
MultiSelect is not showing correct count of initialSelectedItem, neither is it updating on the state update of the variable fed in initialSelectedItem.
Steps to reproduce the issue
Link for CodeSandBox
Please take a look at the codesandbox link to view the bug in action CodeSandBox Link