Fix textarea label rendering in form editor
[MAILPOET-2599]
This commit is contained in:
committed by
Veljko V
parent
9565844854
commit
4d524f906a
@@ -133,11 +133,11 @@ const CustomTextAreaEdit = ({ attributes, setAttributes, clientId }) => {
|
|||||||
className="mailpoet_textarea"
|
className="mailpoet_textarea"
|
||||||
name="custom_text"
|
name="custom_text"
|
||||||
data-automation-id="editor_custom_textarea_input"
|
data-automation-id="editor_custom_textarea_input"
|
||||||
value={placeholder}
|
|
||||||
rows={attributes.lines}
|
rows={attributes.lines}
|
||||||
style={inputStyles}
|
style={inputStyles}
|
||||||
onChange={() => null}
|
onChange={() => null}
|
||||||
onFocus={() => textarea.current.blur()}
|
onFocus={() => textarea.current.blur()}
|
||||||
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ const CustomTextAreaEdit = ({ attributes, setAttributes, clientId }) => {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<label className="mailpoet_textarea_label" data-automation-id="editor_custom_text_label" htmlFor={clientId} style={labelStyles}>
|
<label className="mailpoet_textarea_label" data-automation-id="editor_custom_text_label" htmlFor={clientId} style={labelStyles}>
|
||||||
{formatLabel(attributes.label, attributes.mandatory)}
|
{formatLabel(attributes)}
|
||||||
</label>
|
</label>
|
||||||
{getTextArea('')}
|
{getTextArea('')}
|
||||||
</>
|
</>
|
||||||
|
Reference in New Issue
Block a user