Skip to content

[upstream] [BUGFIX] Centralize focus handling in the backend wizard#11

Draft
github-actions[bot] wants to merge 1 commit into
release/v14from
upstream-sync/027a951023
Draft

[upstream] [BUGFIX] Centralize focus handling in the backend wizard#11
github-actions[bot] wants to merge 1 commit into
release/v14from
upstream-sync/027a951023

Conversation

@github-actions

Copy link
Copy Markdown

Automatisch vorgeschlagener Cherry-pick aus TYPO3-CMS/form @ 14.3.

⚠ Conflict detected — diese PR enthält Konfliktmarker und ist als Draft markiert.
Bitte lokal auschecken, manuell auflösen, dann das Label needs-conflict-resolution entfernen und die PR aus dem Draft-Status nehmen.

Upstream-Commit

Commit-Message

Upstream-Commit-Message anzeigen
[BUGFIX] Centralize focus handling in the backend wizard

typo3-backend-wizard never moved focus into a step on its own, leaving
it up to individual steps. As a result keyboard users landed on
inconsistent elements after navigating between steps, and steps that
load their content asynchronously received no focus at all.

Handle focus in the wizard itself. On every step change focus is
directed at the selected radio, otherwise the first form control and
otherwise the primary action button. Steps that build their content
asynchronously re-render the wizard once their data settles, so the
attempt is repeated on each update until a target appears; steps no
longer need to wire up focus themselves. Enter pressed inside a bare
input now advances the wizard, emulating a form submit.

The ad-hoc focus workaround in the form wizard's settings step is
removed as it is now handled centrally.

Resolves: #110151
Releases: main, 14.3

Change-Id: I146edb88c15da039b7d2d6243f27d0d72f2fef4b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/94804
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>


Erzeugt von .github/workflows/upstream-sync.yml.
Um diesen Commit künftig nicht erneut vorzuschlagen, schließe die PR ohne Merge — der Marker unten bleibt erhalten.

typo3-backend-wizard never moved focus into a step on its own, leaving
it up to individual steps. As a result keyboard users landed on
inconsistent elements after navigating between steps, and steps that
load their content asynchronously received no focus at all.

Handle focus in the wizard itself. On every step change focus is
directed at the selected radio, otherwise the first form control and
otherwise the primary action button. Steps that build their content
asynchronously re-render the wizard once their data settles, so the
attempt is repeated on each update until a target appears; steps no
longer need to wire up focus themselves. Enter pressed inside a bare
input now advances the wizard, emulating a form submit.

The ad-hoc focus workaround in the form wizard's settings step is
removed as it is now handled centrally.

Resolves: #110151
Releases: main, 14.3

Change-Id: I146edb88c15da039b7d2d6243f27d0d72f2fef4b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/94804
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>

(cherry picked from commit 027a95102318c700b907838cfafa3b19738ec144)

[CONFLICT — manual resolution required]
@github-actions github-actions Bot added upstream-sync Automatically proposed cherry-pick from upstream needs-conflict-resolution Cherry-pick had conflicts, manual resolution required bugfix Bugfix from upstream labels Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bugfix from upstream needs-conflict-resolution Cherry-pick had conflicts, manual resolution required upstream-sync Automatically proposed cherry-pick from upstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant