Skip to content

[Grid] Compatible props are no longer warned about in v2 #43758

@oliviertassinari

Description

@oliviertassinari

Steps to reproduce

https://stackblitz.com/edit/react-wqh4ke?file=Demo.tsx

import * as React from 'react';
import Paper from '@mui/material/Paper';
import Grid from '@mui/material/Grid2';

export default function BasicGrid() {
  return (
    <Grid container spacing={1}>
      <Grid size={8} spacing={2}>
        <Paper>size=8</Paper>
      </Grid>
      <Grid size={4}>
        <Paper>size=4</Paper>
      </Grid>
    </Grid>
  );
}

Current behavior

No warnings

Expected behavior

SCR-20240915-bkol

https://stackblitz.com/edit/react-s8bppb?file=Demo.tsx

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: -

Metadata

Metadata

Assignees

Labels

component: GridThe React component.type: regressionA bug, but worse, it used to behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions