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
Multiselect dropdown throwing browser console error while selecting the value the first time
Error Details: App.jsx:13 Warning: Cannot update a component (App) while rendering a different component (MultiSelect). To locate the bad setState() call inside MultiSelect, follow the stack trace as described in https://reactjs.org/link/setstate-in-render at https://githubbs1zsv-faiz--5173--a9c8a5a3.local-credentialless.webcontainer.io/node_modules/.vite/deps/@carbon_react.js?v=703ae265:97328:16 at div at App (https://githubbs1zsv-faiz--5173--a9c8a5a3.local-credentialless.webcontainer.io/src/App.jsx:22:49)
@tw15egan I have updated the library in my app and on selection consol issue is fixed but now seeing issue related to defaulted selected items. it's not updating the selected count and default value is not selected. its showing unchecked into the multiselect drop-down. Kindly look into the issue
Package
@carbon/react
Browser
Chrome, Firefox
Package version
v1.49.0
React version
v18.2.0
Description
Multiselect dropdown throwing browser console error while selecting the value the first time
Error Details:
App.jsx:13 Warning: Cannot update a component (
App) while rendering a different component (
MultiSelect). To locate the bad setState() call inside
MultiSelect, follow the stack trace as described in https://reactjs.org/link/setstate-in-render at https://githubbs1zsv-faiz--5173--a9c8a5a3.local-credentialless.webcontainer.io/node_modules/.vite/deps/@carbon_react.js?v=703ae265:97328:16 at div at App (https://githubbs1zsv-faiz--5173--a9c8a5a3.local-credentialless.webcontainer.io/src/App.jsx:22:49)
Screenshot:
I have reproduced this issue here
https://stackblitz.com/edit/github-bs1zsv?file=src%2Findex.scss,src%2FApp.jsx&preset=node=
Reproduction/example
https://stackblitz.com/edit/github-bs1zsv?file=src%2Findex.scss,src%2FApp.jsx&preset=node=
Steps to reproduce
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
I am using React carbon component
Code of Conduct
The text was updated successfully, but these errors were encountered: