Quick filter breaking on grouped rows & some rows with random ids in 6.9.1 #9586
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Filtering
Related to the data grid Filtering feature
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/competent-wiles-yvykm5?file=/demo.tsx
Steps:
Up to version 6.9.0, this behavior wasn't occurring. The only indication I can see of what might have caused it is possibly the optimizations to filtering #9254, but I'm not sure.
Current behavior 😯
Current behavior appears to be that when applying a quick (text) filter onto the table, rows that have derived ids (specified by a
getRowId
function) seem to cause issues, resulting in a 'no row found' error. The two cases where I noticed it happening were:getRowId
function,getRowId
(e.g [row.userId, row.cid].join('/')Expected behavior 🤔
I would expect that quick filtering should still (and always) work with any rows that have valid ids generated either by default (from the row.id field) or by the getRowId function.
Context 🔦
This popped up as a bug ticket after we updated from 6.9.0 to 6.9.1.
Your environment 🌎
npx @mui/envinfo
Bug occurred while using Chrome
Order ID or Support key 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: