Skip to content

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

@byteninjaa0

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

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

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions