Skip to content

Fix for deleting all text on the More block resets it to the default text#363

Merged
daniloercoli merged 2 commits intomasterfrom
issue/359-Deleting-text-more-block
Dec 13, 2018
Merged

Fix for deleting all text on the More block resets it to the default text#363
daniloercoli merged 2 commits intomasterfrom
issue/359-Deleting-text-more-block

Conversation

@daniloercoli
Copy link
Copy Markdown
Contributor

This PR fixes #359 by making sure to only use the default text once, during init of the block.
(The web side does the same).

GB side companion PR: WordPress/gutenberg#12821

Steps to test:

  • Tap on a Read More block
  • Delete all the text
  • It should stay empty

Test 2:

  • Add a new Read More block
  • The text should be "Read more"
  • Delete all the text
  • It should stay empty

Copy link
Copy Markdown
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@daniloercoli daniloercoli merged commit 5cfe37c into master Dec 13, 2018
@daniloercoli daniloercoli deleted the issue/359-Deleting-text-more-block branch December 13, 2018 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants