carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.75k stars 1.8k forks source link

<MultiSelect.Filterable component select all, all items not selecting, although state updating in react. #9819

Closed hrshtpnt closed 2 years ago

hrshtpnt commented 2 years ago

image

URGENT HELP NEEDED

I added select all option within the list, but the component does not re-render even when the state is changing and updating. Is there a way to re-render the component.

I tried to use a key prop key={Math.random()} with this my logic seems to work but the dropdown collapses/re-renders on each item select.

dakahn commented 2 years ago

After reading through the linked issue it seems like this is a feature request? Can you fill out the provided issue template so we can triage and figure this out a little easier? Thanks!

hrshtpnt commented 2 years ago

Ticket: https://github.com/carbon-design-system/carbon-web-components/issues/710

Sandbox: https://codesandbox.io/s/filterable-multiselect-d5stb