-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Select] Throwing a value undefined error in latest 5.6.1 #32253
Comments
Hi. Thanks for the report. It indeed seems like a regression from the change in #27299 . In the meantime, you can remove Here is a working solution: https://codesandbox.io/s/suspicious-hooks-v87vwp?file=/src/RhSelect.component.tsx:1378-1447 |
Ill update my side to use the |
Let me chip in here - this crashes is more or less expected as Select receives an empty string as its first child. Select should have only Nevertheless, we may add a guard checking if elements have the proper type to prevent such mistakes. |
Hi @hbjORbj @michaldudak, I will work on this! |
Hi @michaldudak, could please review the PR! thanks! |
Duplicates
Latest version
Current behavior 😯
I think this is related to changes in #27299, I am getting an error that value is undefined:
TypeError: arr[0].props is undefined
Expected behavior 🤔
Should work as it does in 5.6.0
Steps to reproduce 🕹
https://codesandbox.io/s/icy-framework-72ywid?file=/src/Demo.tsx
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: