Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8b25798

Browse files
committedDec 20, 2016
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

+3-1
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)
Please sign in to comment.