Prevent closing modal when clicking the overlay
[MAILPOET-2741]
This commit is contained in:
@@ -68,11 +68,6 @@ jQuery(($) => {
|
|||||||
const formDiv = closeIcon.parent();
|
const formDiv = closeIcon.parent();
|
||||||
closePopupForm(formDiv);
|
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) => {
|
$('div.mailpoet_form_popup').each((index, element) => {
|
||||||
const cookieValue = getCookie('popup_form_dismissed');
|
const cookieValue = getCookie('popup_form_dismissed');
|
||||||
|
Reference in New Issue
Block a user