Review main Merged

91112[BUGFIX] Maintain focus after clearing a clearable input field

Benjamin Franzke CR +2 V +2 Easy +9 −3 updated 10/27/25, 06:03

Commit message

When clicking the clear-indicator, the input value is cleared
and the indicator is removed from DOM and therefore focus
is moved back to `<body>`, which means that focus-flow is lost.

It is likely that a user that clears the value desires to change,
therefore a focus on the actual input should be the action
a user would expect.

This behavior also matches the one of the native type=search element.

The t3js-clearable class is removed from datetime element, since
this caused a double initialization of the clearable button (
date-picker already initializes the clearable handler for
the alternative datepicker input) and therefore prevented this
fix to operate.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
    • Michael Telgkamp +1
    • Sven Liebert +1
  • Verified V +2 Done
    • Benjamin Franzke +2
    • Michael Telgkamp +1
    • Sven Liebert +1
    • core-ci +1 CI

Issues 1

Files 3

Review log 811

  1. Benjamin Franzke uploaded patch set 1 10/16/25, 23:05

  2. core-ci voted on patch set 1 V +1 10/16/25, 23:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86854

  3. Benjamin Franzke uploaded patch set 2 V +1 10/17/25, 09:25

  4. core-ci voted on patch set 2 V +1 10/17/25, 09:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/86885

  5. Michael Telgkamp rebased onto patch set 3 V +1 10/22/25, 21:11

  6. Michael Telgkamp voted on patch set 3 CR +1 V +1 10/22/25, 21:13

  7. core-ci voted on patch set 3 V +1 10/22/25, 21:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87307

  8. Benjamin Franzke wrote 10/23/25, 02:47

    Hashtag added: tas2025
  9. Sven Liebert voted on patch set 3 CR +1 V +1 10/24/25, 14:58

  10. Benjamin Franzke voted on patch set 3 CR +2 V +2 10/27/25, 06:03

  11. Benjamin Franzke merged patch set 4 10/27/25, 06:03