Skip to content
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

[Grid] Missing slot #36765

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Apr 3, 2023

closes #36651

This bug is hidden because styled-component v5 uses isPropValid (same as emotion) so sx and ownerState never leak to DOM.

However, styled-component v6 removes this automatic props filtering so the slot is required to explicitly pass the shouldForwardProp to styled-component.

@siriwatknp siriwatknp added component: Grid The React component. package: material-ui Specific to @mui/material package: joy-ui Specific to @mui/joy labels Apr 3, 2023
@siriwatknp siriwatknp requested a review from mnajdova April 3, 2023 06:09
@siriwatknp siriwatknp added the bug 🐛 Something doesn't work label Apr 3, 2023
@mui-bot
Copy link

mui-bot commented Apr 3, 2023

Netlify deploy preview

https://deploy-preview-36765--material-ui.netlify.app/

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against 9c9d1a7

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Did you check if we have any other component that's missing a slot?

@siriwatknp
Copy link
Member Author

Looks good! Did you check if we have any other component that's missing a slot?

Checked (Box, Container, Stack), only Grid that's missing the slot.

@siriwatknp siriwatknp merged commit 51884de into mui:master Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Grid The React component. package: joy-ui Specific to @mui/joy package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Grid2, styled-components] React does not recognize the ownerState prop on a DOM element
3 participants