Review 14.3 Merged

96356[BUGFIX] Restore native submit for modal forms

Oli Bartsch CR +2 V +2 Hard +187 −69 updated 10/05/26, 09:36

Commit message

The login refresh modal no longer submitted when pressing Enter in
the password field. After the migration to @typo3/backend/modal the
footer button was not associated with the form anymore. Without a
submit button, implicit submission is blocked as soon as a form has
more than one text-like field, which is the case here.

Bind the footer button to the form again and drop its trigger: The
trigger performed a session refresh request in parallel to the
login and closed the modal regardless of the result, so a wrong
password left the user without a dialog to retry in.

Let the modal focus a field marked as autofocus instead of the
active footer button, also for content loaded via AJAX, and align
the remaining backend modal forms to form-owned submit buttons
instead of manual requestSubmit() and submit() callbacks, so Enter
key submission and native validation behave consistently. As a
result, Enter in the column selector filter now applies the
selection, and Enter in the record download settings now closes
the modal.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 3

Files 25

Show 5 more files

Review log 34

  1. Oli Bartsch uploaded patch set 1 10/05/26, 07:43

  2. core-ci voted on patch set 1 V +1 10/05/26, 07:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110083

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 10/05/26, 09:36

  4. Oli Bartsch merged patch set 2 10/05/26, 09:36