yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

Nested modal instances #248

Open jnlsn opened 9 years ago

jnlsn commented 9 years ago

I have a rare case where I need to open another modal from within a modal instance. It works, but the translucent background doesn't cover up the previous modal, so you can still click on it, thereby opening even more modal instances. It would be great if the modal stack would cover up any existing modals.

orneryd commented 8 years ago

I would really suggest folling a ui-router stateful modal paradigm (opening the modal on the onEnter handler)

https://github.com/timothyswt/ng-gulp-hapi/blob/master/client/views/main/modal/modal.js

then you can transition to and from modals without having them overlay on top of eachother (bad practice)

jnlsn commented 8 years ago

Yeah, I'm already doing that elsewhere, but it's not appropriate in this instance. I ended up going a completely different route. I recognize it's not the best design, but there are cases where it would be useful.