You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Not possible to open second dialog if NoopAnimationsModule is used #6719
Do you have any ETA on this ?
This issue broke a lot of features in some of our apps and I can't really use BrowserAnimationsModule instead of NoopAnimationsModule because we have to support IE11.
A side effect of this issue is that MdDialog return the wrong MdDialogRef (from the already opened dialog) instead of the one of the new (but not opened) dialog.
@devversion Nice.
Do you have any idea when it will be merged so I can get the build from https://github.com/angular/material2-builds ?
I will build your branch locally for the moment, but it's not a viable solution.
This issue getting blocker for us. Any update or workaround??
Reacted by Daniel Moerland, Billy Jacobs, Chris Fabio, jainankit102, andreimitrus, Xinan, Ignat Ignatov, Jason Yeomans, Alberto Naperi Jr. and voloshyo
Hi,
Don't know if it is the answer to the initial question but I ran into the problem of calling MatDialog.open() after I called the MatDialogRef.close().
A second dialog wasn't opened. I saw that both MatDialogRef instances had the same id, even if set the MatDialogConfig.id.
It looks like calling the MatDialogRef.close() on the first reference doesn't remove it immediately of the MatDialog and therefor calling the second MatDialog.open() returns the first instance of MatDialogRef which will be immediately closed.
I solved it by first calling the MatDialog.getDialogById() with the id of the first MatDialogRef, if it returns
an instance (even if i already called the close() on it), I will call the afterClosed() and in the subscription of
the Observer I call my second MatDialog.open(). This works for me.
Activity
fix(dialog): multiple dialogs not opening with disabled animations
fix(dialog): multiple dialogs not opening with disabled animations
fix(dialog): multiple dialogs not opening with disabled animations
TomDemulierChevret commentedon Sep 5, 2017
Do you have any ETA on this ?
This issue broke a lot of features in some of our apps and I can't really use BrowserAnimationsModule instead of NoopAnimationsModule because we have to support IE11.
A side effect of this issue is that MdDialog return the wrong MdDialogRef (from the already opened dialog) instead of the one of the new (but not opened) dialog.
devversion commentedon Sep 5, 2017
@TomDemulierChevret No ETA for this, but the PR that fixes the issue is ready for merge.
TomDemulierChevret commentedon Sep 6, 2017
@devversion Nice.
Do you have any idea when it will be merged so I can get the build from https://github.com/angular/material2-builds ?
I will build your branch locally for the moment, but it's not a viable solution.
fix(dialog): multiple dialogs not opening with disabled animations
fix(dialog): multiple dialogs not opening with disabled animations
owen26 commentedon Sep 25, 2017
I'm wondering why this issue still happens on EDGE and IE11 even if I import BrowserAnimationsModule?
fix(dialog): multiple dialogs not opening with disabled animations
webUIdevelopment commentedon Sep 29, 2017
We are facing the same issue. Opening nested dialog on iOS with BrowserAnimationsModule does not work. the logic inside the open dialog is below.
openDialog() {
this.closeDialog();
this.dialog.open(LogInComponent, {
height: '100%',
width: '100%'
});
}
Also, when using NoopAnimationsModule, the dialog.open needs to wrapped inside setTimeout to work on iOS devices.
Kindly assist
fix(dialog): multiple dialogs not opening with disabled animations
argoo83 commentedon Oct 6, 2017
Any workaround for this until the PR i merged and released?
jainankit102 commentedon Oct 25, 2017
This issue getting blocker for us. Any update or workaround??
billyjacobs2014 commentedon Oct 26, 2017
An update on this would be appreciated.
billyjacobs2014 commentedon Oct 28, 2017
It is pretty sad that no one will even give an update on this. Last response 22 days ago.
dvj1988 commentedon Nov 15, 2017
I think they are working on it. See this pull request .
#8051
daQuark commentedon Nov 21, 2017
Hi,
Don't know if it is the answer to the initial question but I ran into the problem of calling MatDialog.open() after I called the MatDialogRef.close().
A second dialog wasn't opened. I saw that both MatDialogRef instances had the same id, even if set the MatDialogConfig.id.
It looks like calling the MatDialogRef.close() on the first reference doesn't remove it immediately of the MatDialog and therefor calling the second MatDialog.open() returns the first instance of MatDialogRef which will be immediately closed.
I solved it by first calling the MatDialog.getDialogById() with the id of the first MatDialogRef, if it returns
an instance (even if i already called the close() on it), I will call the afterClosed() and in the subscription of
the Observer I call my second MatDialog.open(). This works for me.
devversion commentedon Nov 28, 2017
This issue has been fixed with #8051
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.