[FEATURE] Trigger event after modals dismiss
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-73720-TriggerEventAfterModalWindowDismissed.rst
1 ============================================================
2 Feature: #73720 - Trigger event after modal window dismissed
3 ============================================================
4
5 Description
6 ===========
7
8 A new event ``modal-destroyed`` has been added that will be triggered after a modal window closed.
9
10
11 Impact
12 ======
13
14 Bind to the event ``modal-destroyed`` to achieve custom actions after the modal dismissed.
15
16 Example code:
17
18 .. code-block:: javascript
19
20 var $modal = Modal.confirm(); // stub code
21 $modal.on('modal-destroyed', function() {
22 // Reset the selection
23 $someCombobox.val('');
24 });