-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dialog): allow for closing on navigation to be disabled #9024
feat(dialog): allow for closing on navigation to be disabled #9024
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -42,9 +44,13 @@ export class MatDialogRef<T, R = any> { | |||
/** Result to be passed to afterClosed. */ | |||
private _result: R | undefined; | |||
|
|||
/** Subscription to changes in the user's location. */ | |||
private _locationChanges: ISubscription = Subscription.EMPTY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this ISubscription
instead of Subscription
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because the Angular Location
isn't actually an observable and it doesn't return a regular Subscription
.
c683407
to
d917bb4
Compare
@crisbeto this passes presubmit, I can merge once you're able to rebase |
Allows consumers to opt out of the functionality that closes all of the open dialogs when going backwards/forwards in history. Fixes angular#8983.
d917bb4
to
4e08418
Compare
Rebased. |
Allows consumers to opt out of the functionality that closes all of the open dialogs when going backwards/forwards in history. Fixes #8983.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Allows consumers to opt out of the functionality that closes all of the open dialogs when going backwards/forwards in history.
Fixes #8983.