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

ios safari event bubbling #14

Open
seanhak opened this issue Feb 21, 2017 · 1 comment
Open

ios safari event bubbling #14

seanhak opened this issue Feb 21, 2017 · 1 comment

Comments

@seanhak
Copy link

seanhak commented Feb 21, 2017

I have a problem in mobile safari, the the click event on the modal buttons keeps the event bubbling, often triggering the modal to open again (because original trigger is in the background).
I've tried to insert stopImmediatePropagation in the throttleHandler (addclicklistener) to no success.

My temporary fix is to disable new modals untill onHideEvent is triggered, which isn't ideal.

Do you have any suggestions on what I could do/What I've missed or if this is just another safari bug?

@kylepaulsen
Copy link
Owner

Sorry, I'm not really sure what you mean. The close modal button should only close the modal and nothing else. I've actually stopped maintaining this library, so it might be best if you used another. I recommend this one: https://github.com/Nycto/PicoModal

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