From b313f9e6a7ec693a1f76d87641a664baebfc76e5 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Tue, 1 Sep 2020 15:55:58 +0200 Subject: [PATCH] Fix apply styles to all button in form editor [MAILPOET-3113] --- assets/js/src/form_editor/store/controls.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; });