NanoModal icon indicating copy to clipboard operation
NanoModal copied to clipboard

ios safari event bubbling

Open seanhak opened this issue 8 years ago • 1 comments

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?

seanhak avatar Feb 21 '17 08:02 seanhak

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

kylepaulsen avatar Feb 21 '17 09:02 kylepaulsen