close
Skip to content

Accordion Block: Pressing Enter in empty Paragraph should exit Accordion Panel #77294

Description

@krokodok

Description

Usually, pressing Enter in an empty Paragraph block exits the containing Block. This is the case for example in Group Blocks and Buttons Blocks. In the new Accordion Block, there is no way to exit the Accordion Panel. Combined with the fact, that there currently is no visual way (#77299) to tell if you are inside the Accordion Panel, or outside of it after it.

Step-by-step reproduction instructions

  1. Create a new Accordion Block.
  2. Move your cursor into "Type / to choose a block".
  3. Press Enter.
  4. The cursor should leave the block. But you are still inside it.

Alternative way to confirm this behaviour:

  1. Create a new Accordion Block.
  2. Move your cursor into "Type / to choose a block".
  3. Press Enter.
  4. Enter some text and press Enter.
  5. A new, empty Paragraph should be created.
  6. Press Enter again.
  7. The cursor does not leave the Accordion block.

Screenshots, screen recording, code snippet

Bildschirmaufnahme.2026-04-14.um.10.20.41.mov

Environment info

Confirmed in WordPress 6.9.4 and Gutenberg Plugin 22.9.0

Firefox Developer Edition 150.0b9

MacBook Pro, 2021
macOS Tahoe 26.3.1 (a)

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] AccordionAffects the Accordion Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions