We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53115ae commit e1d45a9Copy full SHA for e1d45a9
packages/mui-system/src/Grid/createGrid.tsx
@@ -170,10 +170,10 @@ export default function createGrid(
170
>
171
{React.Children.map(children, (child) => {
172
if (
173
- React.isValidElement(child) &&
+ React.isValidElement<{ container?: unknown }>(child) &&
174
isMuiElement(child, ['Grid']) &&
175
container &&
176
- (child.props as any).container
+ child.props.container
177
) {
178
return React.cloneElement(child, {
179
unstable_level: (child.props as GridProps)?.unstable_level ?? level + 1,
0 commit comments