98340[TASK] Focus and reveal inserted elements in the form editor
Commit message
When an editor inserted a new element into a form longer than the screen, the stage kept its scroll position, so the new element could end up out of view, and the focus was lost once the insert dialog closed. The form editor now scrolls a newly inserted element into view and, where the inspector is docked beside the stage, moves the focus into the first inspector field, so its label can be typed right away. Both happen once the insert dialog is hidden, because the dialog keeps the form editor inert while it is open and returns the focus to its trigger when it closes.
Resolves: #97500 Releases: main, 14.3 Change-Id: I6092abfa0c8e969fbda702084fea97ef0fe909b3
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/40/98340/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/40/98340/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Merge conflicts 6
- 98361[FEATURE] Allow disabling steps in the form editor
- 95093[FEATURE] Allow form elements on summary page
- 96357[FEATURE] Attach static files to form emails
- 93838[FEATURE] Translate forms in the backend
- 93206[WIP][TASK] Use strict typing for EXT:form helper methods
Show 1 more change Show less
Issues 1
Files 5
- Build/Sources/TypeScript/form/backend/form-editor/mediator.ts+1 −0
- Build/Sources/TypeScript/form/backend/form-editor/view-model.ts+23 −0
- Build/tests/playwright/e2e/form/form-editor-stage.spec.ts+22 −0
- typo3/sysext/form/Resources/Public/JavaScript/backend/form-editor/mediator.js+1 −1
- typo3/sysext/form/Resources/Public/JavaScript/backend/form-editor/view-model.js+1 −1
Review log 13
-
Josua Vogel uploaded patch set 1 12/04/26, 16:52
-
core-ci voted on patch set 1 V -1 12/04/26, 17:04 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116351
-
core-ci voted on patch set 1 V +1 12/04/26, 17:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116351