getgrav / getgrav/grav-plugin-admin

Input autofocus gets lost

Open
#2,382 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Here, in flex objects editor the first field has autofocus flag. When page loads the field gets focused for a short time, but then it loses it:

![image](https://github.com/getgrav/grav-plugin-admin/assets/20968145/34954eb1-f98b-400f-8749-8e4843f72395)

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the flex objects editor and reproducing the page-load focus behavior, then trace what removes focus after the initial autofocus. Done means the first field retains focus when the editor loads, with a regression test if the existing test setup covers this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.