Skip to content

Accordion block requires manual click to start editing, unlike other blocks #71933

Closed

Description

@byteninjaa0

Description

Auto-focus feature is not working properly in the accordion block. I expect the cursor to immediately appear in the first editable field (summary/title) when the block is inserted, allowing me to start typing right away like other Gutenberg blocks, but nothing gets focused and I have to manually click on the summary field to start editing instead.
this might be related.

Step-by-step reproduction instructions

  1. Open WordPress block editor (Gutenberg)
  2. Click the "+" button to add a new block
  3. Search for and select "Accordion" block
  4. Observe that the block is inserted but no cursor appears
  5. Try typing immediately - nothing happens
  6. Compare with other blocks:
  • Add a "Paragraph" block → cursor immediately appears, can type
  • Add a "Heading" block → cursor immediately appears, can type
  • Add "Accordion" block → no cursor, cannot type

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Activity

  1. hanneslsm commented on Sep 29, 2025

    @hanneslsm

    Thank for the report @byteninjaa0

    Auto-focus feature is not working properly in the accordion/details block.

    Can you please clarify, are you referring to the "Details block" (which can also be found with the keyword Accordion) or the new "Accordion block"?

  2. byteninjaa0 commented on Sep 29, 2025

    @byteninjaa0
    ContributorAuthor

    @hanneslsm I tested the details block again, and I think the issue is with the accordion block and not the details block. I have updated my report accordingly.

  3. added theissue type on Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs TestingNeeds further testing to be confirmed.[Block] AccordionAffects the Accordion Block[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions