From 4d524f906ac30b79e82f76eca2bd94a9d446a7f0 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Thu, 12 Mar 2020 11:00:51 +0100 Subject: [PATCH] Fix textarea label rendering in form editor [MAILPOET-2599] --- assets/js/src/form_editor/blocks/custom_textarea/edit.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/src/form_editor/blocks/custom_textarea/edit.jsx b/assets/js/src/form_editor/blocks/custom_textarea/edit.jsx index 0124ef7231..a2b7a811ef 100644 --- a/assets/js/src/form_editor/blocks/custom_textarea/edit.jsx +++ b/assets/js/src/form_editor/blocks/custom_textarea/edit.jsx @@ -133,11 +133,11 @@ const CustomTextAreaEdit = ({ attributes, setAttributes, clientId }) => { className="mailpoet_textarea" name="custom_text" data-automation-id="editor_custom_textarea_input" - value={placeholder} rows={attributes.lines} style={inputStyles} onChange={() => null} onFocus={() => textarea.current.blur()} + placeholder={placeholder} /> ); @@ -148,7 +148,7 @@ const CustomTextAreaEdit = ({ attributes, setAttributes, clientId }) => { ) : ( <> {getTextArea('')}