-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Divider][Tabs] Using divider with tab causes 4 console warnings in Chrome DevTools #38516
Comments
@bpc1985 What is your purpose for having a Divider element there? The Material UI Tabs component is meant to have only Material UI Tab children inside. |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
Sorry, I dont see it for a long time |
Alright, I believe it's a good idea to support it. The warnings occur because the props are passed to the DOM due to Tabs using React.cloneElement internally. This can be resolved by either using the React Context API or transitioning to the Base UI Tabs hook. |
Duplicates
Latest version
Steps to reproduce 🕹
Link to reproduce:
https://codesandbox.io/s/ecstatic-fast-rhkzvn?file=/Demo.tsx
Current behavior 😯
When trying to add Divider to Tab component
For example:
it causes a lot of warnings in devtools
Expected behavior 🤔
It should not show any warnings
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: