Buttons: Fix exception doesn't flow to ErrorBoundary.#8369
Buttons: Fix exception doesn't flow to ErrorBoundary.#8369ScarletKuro merged 4 commits intoMudBlazor:devfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8369 +/- ##
=======================================
Coverage 88.72% 88.72%
=======================================
Files 407 407
Lines 12184 12196 +12
Branches 2429 2430 +1
=======================================
+ Hits 10810 10821 +11
Misses 849 849
- Partials 525 526 +1 ☔ View full report in Codecov by Sentry. |
|
@henon @danielchalmers I think we have no other choice but use this compomise with public abstract class XXX : MudComponentBase, IHandleEvent
{
Task IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, object? arg) => callback.InvokeAsync(arg);
}if we want this to be fixed #8365 and not come back to this issue #8151 That's the only combination to be working. Luckily the |
|
We need to check if |
They are affected 😥 Removing |
|
God that's depressing 😭 and such an unpleasant workaround. It was a good optimization too MudMenuItem When are you targeting a new release? Is it possible to hold off until MS has an answer? They're usually pretty quick |
I couldn't make it work with
Well, technically we could add the
I haven't yet reverted anything tho, @henon will have to decide what to do with this and about the release too. |
|
@ScarletKuro We'll revert the problematic changes for now, or use the workaround you have found, whichever appropriate per component. Reverting has proven to be a good solution in the past because otherwise we are drowned in issues and questions on discord and we can't know when microsoft will fix the bug. So is this PR ready to merge? |
I will fix the typo tonight after work then merge this PR. |
|
|
Unfortunate but let me know if I can help to get things working again. Thanks for all the work on managing this stuff |
Description
Fixes: #8365
See: #8365 (comment) and dotnet/aspnetcore#54543
PR that introduced regression: #8203
How Has This Been Tested?
New unit tests for MudButton / MudFab / MudIconButton that check that
ErrorBoundaryis now working for button.Also checked on @danielchalmers repro https://github.com/danielchalmers/ScrollToTopBeforeNavigate that the old behaviour with scrolling to top is not back with this change
Types of changes
Checklist:
dev).