-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Multiple Modals and Backdrop #2678
Comments
Everything that I've seen is that they re-use the backdrop when possible. This is convenient for not creating objects, but not convenient for doing things with different backdrop styles... |
I'm not trying to use different backdrop styles, I'm trying to make sure that "a" or "the" backdrop is under the top-most modal. This doesn't happen if you open a modal on a modal. Example: |
+1 |
plunkr to demonstrate please |
http://plnkr.co/edit/KCBVGVzirLlApozRrbjl The flow is as follows: Once you open the first modal, clicking OK will close it and will open the second one right away. |
So we've run into this as well. I'm still poking around, but it seems that there's a race condition from closing the first modal (and removing its backdrop) and setting the backdrop of the second modal. Specifically, I'm seeing that backdropDomEl is non-null right here, which means that the second modal does not get its backdrop applied. |
If I open a modal within a modal, a new backdrop doesn't instantiate for the second modal. Does Angular UI support this use case? If not, is there an option to move the backdrop to the highest modal?
The text was updated successfully, but these errors were encountered: