Skip to content

Commit

Permalink
Use the default "Read More" text on init only, giving the ability to …
Browse files Browse the repository at this point in the history
…user to empty the field and re-start with empty text (#12821)
  • Loading branch information
daniloercoli authored Dec 13, 2018
1 parent e72c26b commit 57c9a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/more/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 57c9a31

Please sign in to comment.