-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Warning: A props object containing a "key" prop is being spread into JSX #247
Comments
can you make a reproduction? I dont see this warning |
closed until a repro is provided |
I have the same issue in a NextJS 14 environment. It has started to happen with the 7 beta version, it's not happening on the 6.x environment. I'm trying too look into it and trying to find where its coming from. |
@waza-ari, thank you. I've been trying to find the time to reproduce. Will get to it eventually. If you could help that would be awesome. |
I found several issues regarding NextJS and MUI (seems to be connected with Autocomplete) vercel/next.js#55642 But I currently don't know what to do and don't use NextJS myself in any project right now |
It might be related to this NextJS issue: mui/material-ui#39833, also mentioned on a SO thread. I'm As far as I can tell it might be about waiting for an upstream fix. The element itself seems to work just fine |
The same now also happens in Vite with React 18.3 |
Any chance of a release with this fix? Still experiencing it with with Vite + React. Thanks guys! |
which version are you using? fix is released in v7 |
Ah, I was on the 7.0.0-beta release. Confirmed fixed in 7.0.0. Thanks guys! |
i hit this bug on AutocompleteElement, which seems to be caused by this line
i think it should be: const { key, ...optionProps } = props;
return (
<li key={key} {...optionProps}> here is the reference |
would it not be rather |
Duplicates
Latest version
Current behavior 😯
When I use the
SelectElement
I see this warning in console:Expected behavior 🤔
No warning.
Steps to reproduce 🕹
Steps:
Use SelectElement like:
The text was updated successfully, but these errors were encountered: