[data grid] GridActionsCellItem
rejects component
props with TypeScript
#16510
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
requiredComponentPropsShouldNotError
. Here we pass an unknown prop toGridActionsCellItem
but no TS error is thrown 🐛missingRequiredComponentPropsShouldError
- here we pass a custom component with thecomponent
prop, but its required props are not marked as a TS error 🐛I've included similar examples with
ButtonBase
, which work as expected and demonstrate what I believe to be the correct behaviour - seemissingRequiredComponentPropsShouldErrorButtonBase
&requiredComponentPropsShouldNotErrorButtonBase
.Current behavior
GridActionsCellItem
rejects itscomponent
props in TypeScript.Expected behavior
GridActionsCellItem
accepts component props for thecomponent
passed.Context
In the MUI docs it is stated that:
I assume this is one of those cases!
Your environment
npx @mui/envinfo
Search keywords: GridActionsCellItem, OverrideProps, Property does not exist on type
Order ID: 102053
The text was updated successfully, but these errors were encountered: