-
-
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
MudList: Add Nullable and use ParameterState #8297
Conversation
Would be nice if someone can do additional testing if they have some other scenario usage. |
Unfortunately I don't know how to avoid this moment with MudBlazor/src/MudBlazor/Components/List/MudList.razor.cs Lines 186 to 193 in f9eebe1
I believe it's just specific complicated logic of our current |
I added this: MudBlazor/src/MudBlazor.Docs/Pages/Components/List/Examples/ListSelectionExample.razor Line 12 in f9eebe1
to test this logic:
And left it in the docs, I don't think it will hurt anyone (but let me know if I should remove). Honestly, I don't really understand this |
Yes, we already discussed this with @mckaragoz for the upcoming v7.0 release as soon as he has won his elections, he'll start working on it. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #8297 +/- ##
==========================================
- Coverage 89.82% 88.80% -1.03%
==========================================
Files 412 405 -7
Lines 11878 12144 +266
Branches 2364 2419 +55
==========================================
+ Hits 10670 10784 +114
- Misses 681 832 +151
- Partials 527 528 +1 ☔ View full report in Codecov by Sentry. |
I guess we never thought of using two-way bindings for the problem because it is somewhat unintuitive that you have to create a field and bind it just for setting a default value. I believe in TreeViewItem we have a similar |
The
Will work as for now out of the box and you don't need the If you remove this line in code:
Then simple
will work too as if you set the |
The nullable is just an addition to this PR, the point is to get rid of the |
Yes, of course making list generic will be a separate PR to the v7 branch and we'll abolish the SelectedItem property as it won't be needed any longer |
OK, let's make |
I'd love too, but we can't have both
Maybe only if I make |
Nah, don't worry for now, let's break the list in v7. It won't be long anyway |
Closing this, since @henon working on the generic version. |
Oh shit, I totally forgot you had already done this. I'd love to merge. Was this ready to merge? |
Yes, it was |
Do not merge, i see that last example stopped to work after merge, tho all tests pass. |
@henon actually it stopped to work even on https://dev.mudblazor.com so I guess it's latest regression that was commited. |
@ScarletKuro I think I'll directly merge your branch into mine and just work on fixing it. |
I found the regression PR #8422 it's a massive one @danielchalmers |
Oh, I'm blind so the mistake is |
Done in a separate PR: #8606 |
@henon safe to merge now if you want, or just fetch it for your PR. |
Thanks! |
Description
Contributes to #6535 and #8258
How Has This Been Tested?
Current unit test + visual doc tests.
Types of changes
Checklist:
dev
).