Skip to content

List: deleting sub items requires deleting twice #40979

Closed

Description

@annezazu

Description

When trying to delete sub items in the v2 of the List block, it requires deleting the block twice and you can only remove the block if you use the three dot menu (keyboard controls don't seem to work). This was found as part of testing for the FSE Outreach Program's fourteenth call for testing.

Step-by-step reproduction instructions

  1. Enable the List block experiment in Gutenberg > experiments.
  2. Add a list block.
  3. Add an initial item.
  4. Add a sub item to that first item.
  5. Try to delete it with your keyboard (you can't).
  6. Try to delete it from the three dot ellipsis menu.
  7. Notice that if there's content in the list item, it clears it but doesn't delete the list item.
  8. Delete again and notice it removes the sub item finally.

Screenshots, screen recording, code snippet

double.delete.list.mov
deletion.mov

Environment info

  • WordPress 6.0 RC 2.
  • GB Version 13.1.0
  • TT2

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] Bug
    [Block] List
    on May 10, 2022
  2. ellatrix commented on Jul 19, 2022

    @ellatrix
    Member

    #42503 also fixes this issue.

  3. annezazu commented on Jul 19, 2023

    @annezazu
    ContributorAuthor

    Noting what this looks like in 6.3 RC1:

    rc1.mov
  4. changed the title [-]List V2: deleting sub items requires deleting twice[/-] [+]List: deleting sub items requires deleting twice[/+] on Aug 4, 2023
  5. moved this to Needs Dev / Todo in WordPress 6.4 Editor Taskson Aug 30, 2023
  6. moved this from Needs Dev / Todo to Punted to 6.5 in WordPress 6.4 Editor Taskson Sep 23, 2023
  7. added
    [Status] In Progress
    on Nov 23, 2023
  8. moved this to 🏗️ In Progress in WordPress 6.5 Editor Taskson Nov 23, 2023
  9. annezazu commented on Feb 5, 2024

    @annezazu
    ContributorAuthor

    The PR hasn't yet been merged and with 6.5 Beta 1 next week, let's punt this.

  10. moved this from 🏗️ In Progress to 🦵 Punted to 6.6 in WordPress 6.5 Editor Taskson Feb 5, 2024
  11. colorful-tones commented on May 22, 2024

    @colorful-tones
    Member

    Hi folks,
    We are only one week away from the Beta 1 cut-off date for WordPress 6.6. This issue hasn’t seen any movement in a while, so we (the editor triage leads of the 6.6 release) have decided to remove it from the WordPress 6.6 Editor Tasks project board.

  12. colorful-tones commented on Jun 14, 2024

    @colorful-tones
    Member

    I don't think this is an issue anymore and we can likely close this out. See notes here: #42503 (comment)

  13. ellatrix commented on Jul 24, 2026

    @ellatrix
    Member

    This is sort of fixed in the sense that it no longer requires a double deleting of the same block. The list item no longer re-appears. What's left behind is an empty list with an appender. Probably also not ideal, but less incorrect. Ideally deleting the list item also deletes the list when it's the last item?

    Image
  14. ellatrix commented on Jul 24, 2026

    @ellatrix
    Member

    The PR #42503 that's open is basically stuck on the question: should we delete the whole parent block if what remains is an "unmodified" block, or disable the delete button in the dropdown when the block has a template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] List[Status] In Progress[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions