Migration from adapter-react-v5@6.x to adapter-react-v5@7.x
Only MUI library was updated from v5 to v6.
withStyles
was removed completely. So you have to replace all withStyles
with sx
or style
properties.
inputProps
and InputProps
are now in slotProps
Examples: Before:
<TextField
inputProps={{ readOnly: true }}
InputProps={{ endAdornment: <IconButton /> }}
/>
<TextField
slotProps={{
htmlInput: {
readOnly: true,
},
input: {
endAdornment: <IconButton />,
},
}}
/>
SelectID
dialog now requires theme
property. Without this property, the dialog will crash.
Replace all Grid
with Grid2
component and remove item
property as it not needed anymore.
Attributes xs, sm, md, lg, xl are now in size
property.
Before:
<Grid item xs={6} sm={4} md={3}>
<Grid/>
<Grid2 size={{ xs: 6, sm: 4, md: 3 }}>
<Grid2/>