[data grid] Following 7.19.0 release setting a column definition prop to undefined doesn't reset the prop when type
is set
#15317
Labels
component: data grid
This is the name of the generic UI component, not the React module!
regression
A bug, but worse
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Link to live example: (required)
Steps:
renderCell
) to a dynamic value (based on another state)https://stackblitz.com/edit/github-3rk5go-nd8osk?file=src%2Fdemo.tsx
Current behavior
The Grid state doesn't reset to its default when the "render" prop is set back to undefined when the "type" of the column is specified but it does when the "type" is not set.
Expected behavior
If one of the props in the column definition object is updated to
undefined
after previously being set, then the MUI default for that prop should be used even when thetype
of the column definition is set.Context
It stopped working following the 7.19.0 release. After some investigation I found it broke after #14456 was merged.
Your environment
npx @mui/envinfo
Search keywords: undefined, column definition
Order ID: 91184
The text was updated successfully, but these errors were encountered: