[data grid] Cell event handlers props have null|undefined API reference #16866
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Steps to reproduce
Steps:
Current behavior
The Grid API references in the
params
anddetails
arguments of theonCellKeyDown
andonCellClick
event handler are undefined or null.Expected behavior
I expect the grid cell params argument to contain a reference to the Grid API as described here https://mui.com/x/api/data-grid/grid-cell-params/
Context
I am trying to apply a custom cell keydown event handler to all Datagrid in our project using the theme. My use case requires the use of the Grid API. I'm not defining the event handler inside of a React component so I don't have access to the hooks which return a reference to the Grid API
Your environment
npx @mui/envinfo
Search keywords: cell event handler api null undefined
The text was updated successfully, but these errors were encountered: