Done
Details
Assignee
UnassignedUnassignedReporter
Oliver TackeOliver TackeCode reviewer
Simen BergoSimen BergoSprint
NoneTester
Gwen Tripet-CostetGwen Tripet-CostetPriority
Medium
Details
Details
Assignee
Unassigned
UnassignedReporter
Oliver Tacke
Oliver TackeCode reviewer
Simen Bergo
Simen BergoSprint
None
Tester
Gwen Tripet-Costet
Gwen Tripet-CostetPriority
Created May 27, 2024 at 1:03 PM
Updated August 6, 2024 at 12:11 PM
Resolved May 31, 2024 at 12:32 PM
Acceptance criteria
When in the H5P editor and opening a content, when there’s an “image” field rendered off screen, the corresponding “Edit image” button does not get focus and thus does not cause the view to jump down.
When in the H5P editor and uploading an image to an image in an “image” field, the “Edit image” button gets focus.
Background
In JI-6152 the “Edit image” button was given focus inside the
addFile
method. However, theaddFile
method does not only get called when an author actively uploads an image, but also when the author opens previously saved content. As a consequence, giving focus to the edit button may cause the editor view to jump downwards when opening content for editing.Suggestion
Pull request at