#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 <span data-processor="relativetime" data-value="2026-05-22T18:30:14+00:00" > 05/22/26, 18:30 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94132 status
NewUnder Review <span data-processor="relativetime" data-value="2026-05-23T04:40:10+00:00" > 05/23/26, 04:40 </span> -
Gerrit Code Review pushed patch set 2 for main to change 94132 <span data-processor="relativetime" data-value="2026-09-28T05:45:15+00:00" > 09/28/26, 05:45 </span>
-
Oliver Bartsch changed Duplicated by #110852 <span data-processor="relativetime" data-value="2026-09-30T20:23:39+00:00" > 09/30/26, 20:23 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 94132 <span data-processor="relativetime" data-value="2026-09-30T20:42:46+00:00" > 09/30/26, 20:42 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 94132 <span data-processor="relativetime" data-value="2026-10-03T10:47:43+00:00" > 10/03/26, 10:47 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 96356 <span data-processor="relativetime" data-value="2026-10-05T07:43:28+00:00" > 10/05/26, 07:43 </span>
-
Wolfgang Klinger commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-05T07:45:10+00:00" > 10/05/26, 07:45 </span> -
Wolfgang Klinger commented <span data-processor="relativetime" data-value="2026-10-05T09:52:06+00:00" > 10/05/26, 09:52 </span>
thx @obartsch
Applied in changeset commit:098b878f8f2da2dda97ed3bb64fb95fdb8e26d67.