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
Stop event propagation when I close a light box #272
Comments
All good. The flag is set when the lity object instantiates and unset when the object is removed: I check the flag when I handle the keyup event to ensure I don't close the window after closing the lightbox. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have implemented a window close when the user clicks the ESC key.
Unfortunately the event propagates from the Lity close event (also triggered by an ESC action) and closes the window too.
I tried the following but I fear I'm too late.
Is there a handle closer to the close that I can use to insert the stopPropagation?
The text was updated successfully, but these errors were encountered: