modal.js: Trigger `close-modal` when.. closing a modal

This commit is contained in:
Johannes Meyer 2021-04-16 10:21:52 +02:00
parent 90a056d988
commit e704309c41
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@
$modal.removeClass('active');
// Using `setTimeout` here to let the transition finish
setTimeout(function () {
$modal.find('#modal-content').trigger('close-modal');
$modal.remove();
}, 200);
};