-
-
Notifications
You must be signed in to change notification settings - Fork 190
Open
Labels
BugSomething isn't workingSomething isn't workingTriageIssue needs to be triagedIssue needs to be triaged
Description
Event handlers in BlazoredModal
are never unsubscribed. Should probably be done in DisposeAsync
.
((ModalService)CascadedModalService).OnModalInstanceAdded += Update;
((ModalService)CascadedModalService).OnModalCloseRequested += CloseInstance;
NavigationManager.LocationChanged += CancelModals;
async ValueTask IAsyncDisposable.DisposeAsync()
{
((ModalService)CascadedModalService).OnModalInstanceAdded -= Update;
((ModalService)CascadedModalService).OnModalCloseRequested -= CloseInstance;
NavigationManager.LocationChanged -= CancelModals;
...
}
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingTriageIssue needs to be triagedIssue needs to be triaged