I have a page with a modal with a lot of info so you need to scroll. This modal contains a link to a second modal.
When I
The solution that worked for me was:
$('.modal').on("hidden.bs.modal", function (e) { if ($('.modal:visible').length) { $('body').addClass('modal-open'); } });