Open christiancvi opened 1 month ago
Solved adding this script:
document.addEventListener('hidden.bs.modal', function (event) {
if (event.target.classList.contains('modal')) {
var modals = document.querySelectorAll('.modal.show');
if (modals.length > 0) {
document.body.style.overflow = 'hidden';
document.body.style.paddingRight = '0px';
}
}
});
Steps to reproduce the behavior:
Expected behavior: I think what should happen is that when closing the last dialog, the nesting modals should be preserved correctly, and the body scroll should not appear.