-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MudTreeviewItem: Fix checkbox in multi-selection mode #8948
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #8948 +/- ##
==========================================
+ Coverage 89.82% 90.47% +0.64%
==========================================
Files 412 419 +7
Lines 11878 12192 +314
Branches 2364 2380 +16
==========================================
+ Hits 10670 11031 +361
+ Misses 681 628 -53
- Partials 527 533 +6 ☔ View full report in Codecov by Sentry. |
@henon I found 2 more issue, clicking the first node skips the nested subitems node: Multi selection: |
@henon do we reopen this issue or shall we create new one? |
No need, I'll directly PR a fix |
This is intended behavior, you shouldn't confuse this example with the custom logic one. Here selecting the parent just selects it and not its children. Conversely selecting all its children doesn't automatically select the parent. That is exactly why we have the custom checkbox example to show how to implement this feature if required |
OK, sorry @Yomodo nevermind what I said above, selection should select children and vice versa. There is a bug in there, I can reproduce it. Whether it happens, depends on whether or not the parent was selected. |
Thank you for explaining; it all makes sense now. |
Just note that modifying the selection via SelectedValues does not trigger any hierarchic selection like when you click the checkboxes. So for instance, if you select only |
Yes, with correct use of the |
Resolves #8940
Type of Changes