I’m using @mui/x-data-grid(6.14.0) to show list of users. My first column has action button on click of action button I’m opening tooltip (mui component) which works as expected on normal use. But if I filter the data grid using GridToolbarFilterButton and click on action button, my data grid is resetting with all the users in list.
This is my code
<DataGrid
rows={data ? data : []}
getRowId={(row: any) => row.patientId}
columns={columns}
onRowClick={rowSelect}
slots={{
toolbar: CustomToolbar,
}}
initialState={{
pagination: {
paginationModel: { pageSize: 10, page: 0 },
},
}}
pageSizeOptions={[10, 25, 50]}
rowSpacingType='margin'
getRowClassName={(params: any) => (params.indexRelativeToCurrentPage % 2 === 0 ? 'even' : 'odd')}
style={{ cursor: 'pointer' }}
/>