Skip to content

Commit

Permalink
fix closing nested routers modals
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslyngsoe committed Nov 7, 2024
1 parent 2c98de7 commit 3f5bc93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/packages/core/router/route.context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ export class UmbRouteContext extends UmbContextBase<UmbRouteContext> {

modalRegistration._internal_setRouteBuilder(urlBuilder);
};

override hostDisconnected(): void {
super.hostDisconnected();
this._internal_modalRouterChanged(undefined);
}
}

export const UMB_ROUTE_CONTEXT = new UmbContextToken<UmbRouteContext>('UmbRouterContext');

0 comments on commit 3f5bc93

Please sign in to comment.