[Bug]: FilterableMultiSelect throw console error when 1st time click and select/unselect the value #16849
Open
2 tasks done
Labels
component: filterable-multiselect
role: dev 🤖
severity: 3
https://ibm.biz/carbon-severity
type: bug 🐛
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 #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
The text was updated successfully, but these errors were encountered: