Fix last form block detection

[MAILPOET-2926]
This commit is contained in:
Rostislav Wolny
2020-05-29 11:15:03 +02:00
committed by Veljko V
parent 87b1b497ce
commit 0a22ba8b33

View File

@@ -85,7 +85,7 @@ jQuery(($) => {
$(() => {
$('.mailpoet_form').each((index, element) => {
$(element).children('.mailpoet_paragraph').last().addClass('last');
$(element).children('.mailpoet_paragraph, .mailpoet_form_image, .mailpoet_form_paragraph').last().addClass('last');
});
$('.mailpoet_form_close_icon').click((event) => {
const closeIcon = $(event.target);