-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Multiple dialogs #7262
Comments
+1 skipHIde works very well... BUT if the controller has for instance: this.$mdDialog.cancel(); This closes the parent first. Then if cancel() is engaged again then it closes the child. So as palavrov said they are closing in reverse order... or reacting in reverse order... SMALL UPDATE: if you use this.$mdDialog.hide() it works!!!! |
@scriptsure, actually it is more weird than that. If I'm not wrong when you create the dialog with |
Not supported until v2.x |
Hi, i put this in my css to solve the second backdrop:
It works for me for 2 dialogs using skipHide:true. Is it good? or wrong? |
@enzonotario For second backdrop, I tried your CSS and it doesn't seem to work. Anything else you did? |
Hi @chenchfort . I use I'm sorry but I don't speak english so well, but if I can, I'm willing to help you. |
Sorry! reading again your comment I think that you already can open two dialogs! LOL (my english is SO poor). With anuglar material v1.0.9 this code works:
I only remove the first Regards! |
@enzonotario Thanks. It still doesn't work particularly in my case. I notice that the second backdrop shows up when I open up a container like md-select though. |
@enzonotario Still doesn't show the second backdrop on my regular parent dialog (md-select issue is resolved though). Can you provide a plunker? Thank you so much for the help! |
More reliable version of the above code.
|
A note to anyone that are about to try above solutions - changing the z-index of md-dialog-container prevents your md-select from closing by clicking elsewhere on the page (including the dialog it originates from). You can even see this on codepen enzonotario provided. I think I have managed to fix this issue though:
|
For confirm and alert dialog, it'll be better to use .parent with skipHide/multiple:
|
Starting a new issue because #698 is locked.
Seems that passing
skipHide:true
tomdDialog
options allow multiple dialogs. There are just two small issues that probably can be easily fixed:The text was updated successfully, but these errors were encountered: