#109864Modal dialogs do not submit on Enter key
Description
The “Refresh Login” modal that appears after a session expires cannot be submitted with the Enter key. The password field is correctly autofocused on open, but pressing Enter does nothing — the user has to Tab
or click the “Login” button.
This was previously reported as #97746 and fixed in 11.5 / main via edada8a0cd2a8e13265082c19154d37abb96c432 (“Enable login refresh form submit via ENTER key”), which marked the Login button as type=“submit“
and bound it to the form via the form=“beLoginRefresh” attribute.
The fix regressed in c75033adde52630e2de8f369822dfee03edeae80 (#101816, v12.4): “Use typo3/backend/modal in login-refresh". The migration from the jQuery / Bootstrap modal API to the new typo3/backend/modal
API dropped the type=“submit” and form=“beLoginRefresh” attributes and replaced the form submission with a manual `trigger: () => modal.querySelector(‘form’).requestSubmit()` callback. The button is no longer
the form’s default button, so HTML5 implicit submission via Enter cannot reach it.
In addition, the Modal component’s typo3-modal-shown handler unconditionally moves focus to the configured active footer button, which overrides the native `
Reviews 2
Related issues 2
History 49
-
Garvin Hicking changed Related to #97746 Related to #101816 05/22/26, 18:30
-
Gerrit Code Review pushed patch set 1 for main to change 94132 status
NewUnder Review 05/23/26, 04:40 -
Gerrit Code Review pushed patch set 2 for main to change 94132 09/28/26, 05:45
-
Oliver Bartsch changed Duplicated by #110852 09/30/26, 20:23
-
Gerrit Code Review pushed patch set 3 for main to change 94132 09/30/26, 20:42
-
Gerrit Code Review pushed patch set 4 for main to change 94132 10/03/26, 10:47
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 96356 10/05/26, 07:43
-
Wolfgang Klinger commented and changed status
Under ReviewResolved done0 %100 % 10/05/26, 07:45 -
Wolfgang Klinger commented 10/05/26, 09:52
thx @obartsch
Applied in changeset commit:098b878f8f2da2dda97ed3bb64fb95fdb8e26d67.