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

Editor: Can't Delete Child Blocks #45736

Open
carinapilar opened this issue Sep 17, 2020 · 2 comments
Open

Editor: Can't Delete Child Blocks #45736

carinapilar opened this issue Sep 17, 2020 · 2 comments
Labels
Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@carinapilar
Copy link

Steps to reproduce

  1. Create a new page, add a Button block to it.
  2. Click on the Button and delete it from its toolbar.
  3. Change to the Code editor and go back to Visual.

What I expected

To not see the Button block, since it was deleted.

What happened instead

The Button block was still there, even though it was deleted. Although the button doesn't show on the site, you can't delete from the editor. It still keeps its code even after being deleted:

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link"></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

It seems it happens because when you select the button to delete it, it actually selects the Button block, not the Buttons one. But once you delete the button in the editor, you're only able to select the Buttons block from the list of blocks on the top left - to then be able to delete the whole thing.

Screenshot / Video

I wasn't able to attach it here, since the file is too big, but you can see a screencast here: https://monosnap.com/file/dYbqAGoOE3j4LMDSGamtnopZDsPvRA

Context / Source

#dogfooding #user-report

@carinapilar carinapilar added [Type] Bug When a feature is broken and / or not performing as intended [Goal] Gutenberg Working towards full integration with Gutenberg labels Sep 17, 2020
@cathymcbride cathymcbride added [Feature] Post/Page Editor The editor for editing posts and pages. Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions and removed [Goal] Gutenberg Working towards full integration with Gutenberg labels Sep 17, 2020
@cathymcbride cathymcbride added the [Pri] Normal Schedule for the next available opportuinity. label Sep 25, 2020
@carinapilar
Copy link
Author

I got another report for this, it seems that the issue is with Parent blocks, it happens when deleting the child block, instead of the parent (that you can only select using the List View), so even after deleting, the block is still there and once you reload the editor it shows the block again. Should we create a new report specific for Parent blocks?

Got on 3587413-zd-woothemes with the WhatsApp Button block, which is a child block of Send a Message.

@carinapilar carinapilar changed the title Button Block: Confusion with Buttons Block when Deleting Editor: Can't Delete Child Blocks Dec 29, 2020
@kathrynwp
Copy link
Member

Also reported here with WhatsApp block: 26648591-hc

@jeherve jeherve added Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". and removed User Report labels Dec 18, 2024
@jartes jartes moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. [Type] Bug When a feature is broken and / or not performing as intended
Projects
Development

No branches or pull requests

5 participants