You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To rule out a caching problem I made sure the bug also happens in an incognito tab
Bug type
Component
Component name
MudDataGrid
What happened?
I've grouped these together because they kind of play off of each other. If they need separated to two issues they easily can be.
The Bug:
In the reproduction link below, hit run and then select a single element, for example Lithium.
Then, filter by the sign of another element so that only one shows, for example filter by Sign contains "Hg".
Notice the Select checkbox in the header is checked, indicating everything filtered is checked, but it's not.
This is happening because the HeaderContext IsAllSelected property is just checking a count instead of equality here (Items is filtered items in this case)
The Inconsistency:
Fix DataGrid Select-All behaviour when filtered #7167 totally makes sense. However, I wouldn't expect it to unselect items NOT in the filter. If I'm filtering, I'd expect that select all to represent and ONLY affect the state of items in the filter.
Again with the same reproduction link (start with no items selected), filter name by contains "H".
Select all items with the header checkbox.
Change the filter to filter by contains "B".
Notice the partial checkbox state. (Which usually indicates some items are selected, but not all. In this case, none of the filtered items are selected.)
Click the box to select all (expected this to ADD filtered items to selected list).
Remove the filter and notice the items containing "H" are no longer selected.
For sake of thoroughness, if I were to click the select all button again before removing the filter in step 7, I'd expect JUST the elements that contain "B" in their names to be unselected and not ALL items. The select all box would be empty (an not have the partial indicator).
FWIW I could do a PR to fix one or both, but wanted to see how the discussion goes first before going in and applying fixes since as described above, they somewhat tie into each other.
I'm also currently still running 6.X for the product more immediately affected by this and it won't be getting upgraded so I currently plan on hiding the header checkbox and implementing my own bulk selects and deselects. Meaning even if we agree with everything I put in here and thumbs up the changes, I'll not get around to making the PR for a while.
Things to check
Bug type
Component
Component name
MudDataGrid
What happened?
I've grouped these together because they kind of play off of each other. If they need separated to two issues they easily can be.
Expected behavior
Described above.
Reproduction link
https://try.mudblazor.com/snippet/vVfdb9s2EH_3P9ED0QcZSOTuA3tYbMONl7QemsSrg-5hGAJaYmyuFOmRVBI38P--44cky3HSeUDnB5kij_d9vzvd3FxQLlNNvyj9alQaLhcwWxvLivSS2fS9tav0V6Nk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zgo9NOGX4LyRMVuy33a2ZLLSN2pttGuB96mD1PHug2tSV-tIBbj_pwXC0WQs2pEGugmVbGQBFnFcgCmAFW-BLsEp3uTOdyVdoXLHd-R7u3xpgXjA--TyfmshTiSv--5Jb50khake3u9Ylr5CedFr_QlFIHmzgxmjaXIwj_Y1WssEpwYEyvdM4lFZOFRHgZU8MOkOQD8j9Iek0eq3a-gcemAfoX38k25Bk9_pWMuOsHgDpjYoCV9WMhqDumsfEwoGYtM7im5jMiy0SiIlTgFJS_dftJdyfEWxVN7ynfnrPTd8yea1W4ud1f7rfqfZiQezanK95bxXHSjy4kluWmU-V0KFr_dqdwYG9G4qRql9WWbypv9cI0kEPxbVfpCiAn0mDzT94cwWvir6IVFasjmMgce-4AHh2LFPf9xuYInFS3Hz9QXF_xHyf-MfMTJTpMp_Uy8Rzc5N3dNPa5Z8uq7Tn-G5nWiPj29jW27fv2SN5Ts5yxJh-Au9ND7NnH9r9oHwRvab55FZVKM_Oq9TGKA1L8ODSY3hJZZCedFkUjrxJAHTnWm2srxiHf175eYyMt5xinMGpUZbbjnEgSO6UfXeERFsyegHGPzS4lR79V4PIyZeTpp8KvsgzQtUNXE_7hvFEN2o5hQkyB7Yh0_3xGqkP4l6XmCv_RkX7Kf5Fy4kGHx-kjsxpD95ym8UoNhVGdaxWwNnluBI34ijDuNN9g4310dm5I08Y3VWr9Aw
Reproduction steps
Described above.
Relevant log output
No response
Version (bug)
7.15.0
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On which operating systems are you experiencing the issue?
Windows
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: