MudMenu: Improve Encapsulation, public API is now Async#8634
MudMenu: Improve Encapsulation, public API is now Async#8634ScarletKuro merged 7 commits intoMudBlazor:devfrom
Conversation
|
We also probably should just make IsOpen as two way bindable, because there is |
|
This tests are weird |
0718644 to
6a0777f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #8634 +/- ##
==========================================
+ Coverage 89.82% 90.08% +0.25%
==========================================
Files 412 418 +6
Lines 11878 12006 +128
Branches 2364 2366 +2
==========================================
+ Hits 10670 10816 +146
+ Misses 681 658 -23
- Partials 527 532 +5 ☔ View full report in Codecov by Sentry. |
|
Added to v7.0.0 Migration Guide #8447 |
Description
Fixes encapsulation
I do not think that
MouseEnterandMouseLeaveshould be public.was changed to explicit
IActivatableimplementation as I also do not think this API should be visible.was removed, since
IActivatabledoesn't have such definition.I also do not understand why
PopoverStyleis public?If it can be changed outside, then it should be declared as Blazor Parameter, if not and it's only used for internal styling, then it shouldn't be visible.
UriHelperandJsApiServicewere changed to protected, as it also shouldn't be used outside.OnClickHandlerrenamed toOnClickHandlerAsyncToggleMenu,CloseMenu,OpenMenuare now async, since they callEventCallbackSummarize:
MouseEnter,MouseLeaveare private now.Activate(object activator, MouseEventArgs args)is explicit now.Activate(object activator, TouchEventArgs args)removed.PopoverStyleis private now.UriHelper,JsApiServicechanged from public to protected.OnClickHandler->OnClickHandlerAsync.ToggleMenu,CloseMenu,OpenMenuare now async.How Has This Been Tested?
Types of changes
Checklist
dev).