Skip to content

[5.x]: New entry flyouts trap focus inside the sidebar #15314

@MoritzLost

Description

@MoritzLost

What happened?

Description

When creating an entry from an entry model, the flyout sets the focus on the slug field, and it's impossible to focus the main field layout. See the following video:

entry-creation.mov

Steps to reproduce

  1. On an entries field, open the entry selection modal and then click on a new entry from there.

Expected behavior

  1. I would expect the initial focus to be on the title field, not the slug. Most of the time, I want to quickly enter a title and then hit CMD + S to exit out of the modal window.
  2. For accessibility, it's also problematic that there's no way to reach the main field layout. Focus should start on the title tabbing should take me to all the main entry fields, then continue in the sidebar.

Actual behavior

Focus starts out on the slug and there's no way to reach the title field through keyboard navigation.

Craft CMS version

5.2.5

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions