Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting empty paragraph also deletes proceeding block #19224

Closed
iandunn opened this issue Dec 18, 2019 · 2 comments
Closed

Deleting empty paragraph also deletes proceeding block #19224

iandunn opened this issue Dec 18, 2019 · 2 comments
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@iandunn
Copy link
Member

iandunn commented Dec 18, 2019

Problem

If you focus on an empty paragraph and hit delete, it's deleted, but so it the block that follows it.

Steps to Reproduce

  1. Paste the below markup into the Code editor, and switch to Visual
  2. Focus on empty paragraph, hit delete
<!-- wp:paragraph -->
<p>foo bar</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p><span style="font-size: inherit;">bar foo</span></p><cite>quix</cite></blockquote>
<!-- /wp:quote -->

Expected

Only the empty paragraph should be deleted.

Actual

The following block is also deleted.

Desktop

  • Chrome 78.0.3904.108
  • WP 5.3.1
@iandunn iandunn added [Type] Bug An existing feature does not function as intended [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Dec 18, 2019
@talldan
Copy link
Contributor

talldan commented Dec 19, 2019

Hey @iandunn, I was able to reproduce slightly different results—instead of being deleted the blockquote is converted into separate paragraphs, which still is a bug.

This was testing against master (Chrome, Mac OS) so that might be the reason for the different behaviour.

paragraph-delete

@ntsekouras
Copy link
Contributor

I'm closing this as was fixed here: #8735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants