Fix apply styles to all button in form editor
[MAILPOET-3113]
This commit is contained in:
committed by
Veljko V
parent
919dc974d4
commit
b313f9e6a7
@@ -158,7 +158,10 @@ export default {
|
|||||||
['mailpoet-form/last-name-input', 'mailpoet-form/first-name-input', 'mailpoet-form/email-input'].includes(block.name)
|
['mailpoet-form/last-name-input', 'mailpoet-form/first-name-input', 'mailpoet-form/email-input'].includes(block.name)
|
||||||
|| block.name.startsWith('mailpoet-form/custom-text')
|
|| block.name.startsWith('mailpoet-form/custom-text')
|
||||||
) {
|
) {
|
||||||
updatedBlock.attributes.styles = actionData.styles;
|
updatedBlock.attributes = {
|
||||||
|
...updatedBlock.attributes,
|
||||||
|
styles: actionData.styles,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return updatedBlock;
|
return updatedBlock;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user