Skip to content

[6.x] Don't autofocus on non-root fields with "title" or "alt" name#14329

Merged
jasonvarga merged 1 commit intostatamic:6.xfrom
hivokas:patch-1
Mar 24, 2026
Merged

[6.x] Don't autofocus on non-root fields with "title" or "alt" name#14329
jasonvarga merged 1 commit intostatamic:6.xfrom
hivokas:patch-1

Conversation

@hivokas
Copy link
Copy Markdown
Contributor

@hivokas hivokas commented Mar 24, 2026

I see how autofocusing on the field with the "title" name is useful, but it results in weird behavior in scenarios like:

CleanShot 2026-03-24 at 13 55 21@2x

Instead of focusing on the page title, it focuses on the title of the last feature, which is not ideal, especially when the pages are huge and it scrolls thousands of pixels down the page to the wrong title.

I think keeping autofocus for "title" and "alt" fields only for root fields would be a good solution to this problem, while preferring the explicitly set focus value if there is any.

@jasonvarga jasonvarga merged commit 43361b7 into statamic:6.x Mar 24, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants