-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Type error when setting component on DialogContentText #19068
Comments
Problem seems to have been introduced with 4.8.1 and affects other components like |
But I don't see any realtion to |
@fyodore82 |
The draw issue was was caused because the "component" prop is not available on Drawer and unused props on Drawer are not forwarded onto a component that supports the "component" prop. Confusion was caused by some wording of the docs that was cleaned up here - #19015 |
I've looked at Do you means that we should add |
Sounds like |
Current Behavior 😯
This:
Throws:
Expected Behavior 🤔
Should accept
component
as a valid propSteps to Reproduce 🕹
https://codesandbox.io/s/charming-mccarthy-mx1kf
Steps:
Context 🔦
I want the component to be a
div
so I can put<ul>
inside which would be invalid inside a<p>
Your Environment 🌎
The text was updated successfully, but these errors were encountered: