diff --git a/js/blocks/controls/textarea.js b/js/blocks/controls/textarea.js index 39f5a9ccf..d1e934796 100644 --- a/js/blocks/controls/textarea.js +++ b/js/blocks/controls/textarea.js @@ -2,6 +2,8 @@ const { TextareaControl } = wp.components; const BlockLabTextareaControl = ( props ) => { const { getValue, field, onChange } = props + const initialValue = getValue( props ); + const value = 'undefined' !== typeof initialValue ? initialValue : field.default; return ( { maxLength={ field.maxlength } rows={ field.number_rows } help={ field.help } - defaultValue={ field.default } - value={ getValue( props ) } + value={ value } onChange={ onChange } /> );