Skip to content

[6.x] CodeMirror traps focus #13035

@daun

Description

@daun

Bug description

It's currently impossible to tab out of a CodeMirror instance after tabbing into it. A mouse click outside of the editor is required to focus the next or previous input. A possible solution might be to blur the CodeMirror instance when pressing esc.

Screen.Recording.2025-11-13.at.15.59.01.mov

How to reproduce

  • Add a markdown field to a blueprint
  • Tab into the field using tab
  • Try to get out of it using tab or shift+tab

Logs

Environment

6.0-alpha.16

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions