From f42eca4cc689539c2e3701bef713b94d434f505e Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 12 Dec 2018 18:29:41 +0100 Subject: [PATCH] Use the default "Read More" text on init only, giving the ability to user to empty the field and re-start with empty text --- packages/block-library/src/more/edit.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/more/edit.native.js b/packages/block-library/src/more/edit.native.js index da731dd953f13..2a17104d3077b 100644 --- a/packages/block-library/src/more/edit.native.js +++ b/packages/block-library/src/more/edit.native.js @@ -54,7 +54,7 @@ export default class MoreEdit extends Component { renderText() { const { attributes, onFocus, onBlur } = this.props; const { customText } = attributes; - const defaultText = __( 'Read more' ); + const { defaultText } = this.state; const value = customText !== undefined ? customText : defaultText; return (