We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1445c07 commit 7307c19Copy full SHA for 7307c19
packages/mui-system/src/Unstable_Grid/createGrid.tsx
@@ -164,7 +164,10 @@ export default function createGrid(
164
{...other}
165
>
166
{React.Children.map(children, (child) => {
167
- if (React.isValidElement(child) && isMuiElement(child, ['Grid'])) {
+ if (
168
+ React.isValidElement<{ container?: unknown }>(child) &&
169
+ isMuiElement(child, ['Grid'])
170
+ ) {
171
return React.cloneElement(child, {
172
unstable_level: (child.props as GridProps)?.unstable_level ?? level + 1,
173
} as GridProps);
0 commit comments