Skip to content
Snippets Groups Projects
Commit 377a61e7 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Georg Ringer
Browse files

[BUGFIX] Avoid timing issue when loading LiveSearch form

There was a timing issue related to the LiveSearch form.
`Modal.advanced()` invokes an AJAX request, while the event handler for
`typo3-modal-shown` expects that the request sent a response.

This might not be the case when either the network is slow or animations
are disabled as the event is always faster dispatched than the request
can send a response.

The generic handling is now moved into an `ajaxCallback`, executed when
fetching the data finished. To be able to still focus the search field
and mark its content, event handlers for 'modal-loaded' and
'typo3-modal-shown' events are installed, as both events may be
dispatched in any order.

Resolves: #100025
Releases: main
Change-Id: I8aca8ba330af55ce915a414dc5a52ba6eb2af1f1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77941


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 2d52e8a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment