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

Some areas outside video modal don't trigger modal close on click #111

Open
geeseyj opened this issue Aug 19, 2018 · 0 comments
Open

Some areas outside video modal don't trigger modal close on click #111

geeseyj opened this issue Aug 19, 2018 · 0 comments
Assignees
Milestone

Comments

@geeseyj
Copy link

geeseyj commented Aug 19, 2018

On video modals, at various screen sizes the div.modaal-video-wrap is wider than the actual video. Screenshot below:

image

Clicks on that extra space won't close the modal since the event listener is listening for a click on div.modaal-inner-wrapper

This makes it unresponsive when it should close the modal like other outside clicks.

I've observed this on the demo site in various browsers.

I'll send a pull request after opening this ticket. 🙂

@geeseyj geeseyj changed the title Some areas outside video modal doesn't trigger modal close on click Some areas outside video modal don't trigger modal close on click Aug 19, 2018
geeseyj pushed a commit to geeseyj/Modaal that referenced this issue Aug 19, 2018
…be responsive to certain clicks outside videos

Update so that if overlay_close is true and a user clicks outside the video on .modaal-video-wrap the modal will close.
@geeseyj geeseyj mentioned this issue Aug 19, 2018
danhumaan pushed a commit that referenced this issue Nov 6, 2018
…ponsive to certain clicks outside videos

Update so that if overlay_close is true and a user clicks outside the video on .modaal-video-wrap the modal will close.
@danhumaan danhumaan self-assigned this Nov 6, 2018
@danhumaan danhumaan added this to the v0.4.5 milestone Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants