-
Notifications
You must be signed in to change notification settings - Fork 34
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
<Transition>
with <Dialog>
breaks clicking the overlay to close
#172
Comments
Good morning @rwwagner90 👋 Hmm I believe that with If you remove these 2 classes (seems that they are redundant) it should work. PS: AFAIR we already put some effort to remove |
@far-fetched if you remove those classes, won't there be no animations? |
I am not an expert where we should apply e.g. into e.g. into Regarding your question, I believe that animation still works as we apply the same classes a few lines later: |
I noticed when perusing the examples today that the animation modal dialog example would not allow me to click outside of it to close the dialog. The non-animated one seems to work fine, and for the animated one if I remove the second
<t.Child>
it will also work.I wonder if we need to pass different parents to the transition or something? This is a complex z-index type of issue, since the overlay is nested in one parent and the modal content is nested in another and there is some fixed positioning.
I've been trying to debug this for awhile, but cannot seem to find a workaround. Perhaps we could use something like https://github.com/zeppelin/ember-click-outside and put that modifier on the modal dialog content, instead of handling the click on the overlay?
I'm happy to explore this as a solution if folks think it would be good!
The text was updated successfully, but these errors were encountered: