joaopereirawd/animatedModal.js

Close modal when user clicks background

Opened this issue · 0 comments

Taewa commented

Hi, thanks for nice plugin.

Is there way to close the modal when user clicks background?

I tried when user clicks #myPopup then trigger .close-myPopup.click()
However, it closes even .modal-content is clicked. I want to avoid this.

Any solutions or options?

Thanks.