MudTreeView: Child nodes with `Visible=false` due to filtering are affected by parent selection in MultiSelection mode
#10.414 aperta il 10 dic 2024
Metriche repository
- Star
- (10.394 stelle)
- Metriche merge PR
- (Merge medio 6g 6h) (108 PR mergiate in 30 g)
Descrizione
Things to check
- I have searched the existing issues for this bug
- To rule out a caching problem I made sure the bug also happens in an incognito tab
Bug type
Component
Component name
MudTreeView
What happened?
When using MudTreeView in MultiSelection mode, child nodes that are filtered out by setting Visible=false are still influenced by the selection state of their parent node.
This behavior causes unexpected changes in the selected state of invisible child nodes when the parent node's selection changes. Ideally, nodes that are not visible due to filtering should not have their selection state affected by parent node interactions in MultiSelection mode.
Expected behavior
Child nodes with Visible=false should remain unaffected by the parent node's selection state in MultiSelection mode.
Reproduction link
https://try.mudblazor.com/snippet/mkwIFGvYkCXkFHRo
Reproduction steps
- Create a MudTreeView with MultiSelection enabled.
- Apply a filter that sets some child nodes' Visible=false.
- Change the selection state of the parent node.
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
- I would like to do a Pull Request
Code of Conduct
- I agree to follow this project's Code of Conduct