Skip to content

[BUG] CodeGroup: when creating a new tab, focus goes to the tab title input instead of the code editor #559

@MahaRosomaha

Description

@MahaRosomaha

Has this bug been raised before?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Description

Bug description

In the CodeGroup plugin, after adding a new tab, the initial input focus is placed in the tab title field rather than the code editor inside the tab. This prevents users from immediately typing/pasting code and requires an extra click into the code area.

Expected: after a new tab is created, focus should be placed in the active tab’s code editor so the user can start typing/pasting code right away.
Actual: focus is placed in the tab title input; user must manually click into the code editor to enter code.

Steps to reproduce

  1. Insert a CodeGroup block.
  2. Create a new tab.
  3. Try typing or pasting code immediately.
  4. Observe the input goes into the tab title field instead of the code editor.
default.mov

Do you want to work on this issue?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions