Skip to content

Commit 8b25798

Browse files
committed
fix(loading/toast): don't call to dismiss pages if the view is an overlay
fixes #9589
1 parent fd1b683 commit 8b25798

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/nav/overlay-portal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export class OverlayPortal extends NavControllerBase {
3737

3838
// on every page change make sure the portal has
3939
// dismissed any views that should be auto dismissed on page change
40-
app.viewDidLeave.subscribe(this.dismissPageChangeViews.bind(this));
40+
app.viewDidLeave.subscribe((ev) => {
41+
!ev.isOverlay && this.dismissPageChangeViews();
42+
});
4143
}
4244

4345
@Input('overlay-portal')

0 commit comments

Comments
 (0)