Issue Bug Closed

#106429ThrottleEvent sends two event if only one event is submitted.

Benjamin Franzke 03/25/25, 15:39 updated 08/12/25, 14:35

Description

1) In TYPO3 Backend browser open Site Settings Editor and edit site setting of a site with categories.

2) Enter in JavaScript console:

const { default: ThrottleEvent } = await import('@typo3/core/event/throttle-event.js');
new ThrottleEvent('scroll', (e) => console.log('scroll', e), 100).bindTo(top.list_frame.document.querySelector('.module'));

3) Click a link in the category to trigger a document scroll

4) Expect one scroll event being logged, but see two:

clipboard-202503251638-ul0rq.png

Reviews 2

Files 1

History 38

  1. Gerrit Code Review pushed patch set 3 for main to change 88585 status New Under Review 03/25/25, 15:44

  2. Gerrit Code Review pushed patch set 4 for main to change 88585 03/25/25, 15:46

  3. Benjamin Franzke changed description 03/25/25, 15:49

  4. Gerrit Code Review pushed patch set 5 for main to change 88585 03/26/25, 19:16

  5. Gerrit Code Review pushed patch set 6 for main to change 88585 03/27/25, 01:06

  6. Gerrit Code Review pushed patch set 1 for 13.4 to change 88787 03/27/25, 10:00

  7. Benjamin Franzke commented and changed status Under Review Resolved done 0 % 100 % 03/27/25, 10:15

    Applied in changeset commit:6bdd09bf3ee0402935ced72ad83bfa25e5b3f738.

  8. Benni Mack changed status Resolved Closed 08/12/25, 14:35