Fix apply styles to all button in form editor

[MAILPOET-3113]
This commit is contained in:
Rostislav Wolny
2020-09-01 15:55:58 +02:00
committed by Veljko V
parent 919dc974d4
commit b313f9e6a7

View File

@@ -158,7 +158,10 @@ export default {
['mailpoet-form/last-name-input', 'mailpoet-form/first-name-input', 'mailpoet-form/email-input'].includes(block.name)
|| block.name.startsWith('mailpoet-form/custom-text')
) {
updatedBlock.attributes.styles = actionData.styles;
updatedBlock.attributes = {
...updatedBlock.attributes,
styles: actionData.styles,
};
}
return updatedBlock;
});