diff --git a/assets/js/src/form_editor/store/controls.jsx b/assets/js/src/form_editor/store/controls.jsx index ab287403f7..688d725ae3 100644 --- a/assets/js/src/form_editor/store/controls.jsx +++ b/assets/js/src/form_editor/store/controls.jsx @@ -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; });