Prevent closing modal when clicking the overlay

[MAILPOET-2741]
This commit is contained in:
Pavel Dohnal
2020-03-30 12:03:30 +02:00
committed by Veljko V
parent 310c94480c
commit 51d908c932

View File

@@ -68,11 +68,6 @@ jQuery(($) => {
const formDiv = closeIcon.parent();
closePopupForm(formDiv);
});
$('.mailpoet_form_popup_overlay').click((event) => {
const overlay = $(event.target);
const formDiv = overlay.next('div.mailpoet_form_popup');
closePopupForm(formDiv);
});
$('div.mailpoet_form_popup').each((index, element) => {
const cookieValue = getCookie('popup_form_dismissed');