Skip to content
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

Nested modal instances #248

Open
jnlsn opened this issue Aug 12, 2015 · 2 comments
Open

Nested modal instances #248

jnlsn opened this issue Aug 12, 2015 · 2 comments

Comments

@jnlsn
Copy link

jnlsn commented Aug 12, 2015

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
Copy link
Contributor

orneryd commented Oct 6, 2015

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
Copy link
Author

jnlsn commented Oct 7, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants