Hi Team,
I have integrated the latest carbon/react library in my application and using the FilterableMultiSelect control. After page load, if select/un-select the value from the control, it's throwing the console error as below
Warning: Cannot update a component (ContextProvider) while rendering a different component (ForwardRef(FilterableMultiSelect)). To locate the bad setState() call insideForwardRef(FilterableMultiSelect), follow the stack trace as described in https://reactjs.org/link/setstate-in-render
Package
@carbon/react
Browser
Chrome, Firefox
Package version
v1.60.2
React version
18.2.0
Description
Hi Team, I have integrated the latest carbon/react library in my application and using the
FilterableMultiSelect
control. After page load, if select/un-select the value from the control, it's throwing the console error as belowWarning: Cannot update a component (
ContextProvider) while rendering a different component (
ForwardRef(FilterableMultiSelect)). To locate the bad setState() call inside
ForwardRef(FilterableMultiSelect), follow the stack trace as described in https://reactjs.org/link/setstate-in-render
I observed the same issue in "MultiSelect" drop down as well. here are the defect details https://github.com/carbon-design-system/carbon/issues/15758 Please provide the solution for this. Let me know if you need any other details
Thanks
Reproduction/example
https://stackblitz.com/edit/github-1ljccm-n43dwk?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct