bootstrap.patch.js 273 B

12345
  1. $(document).on('show.bs.modal', '.modal', function () {
  2. const zIndex = 1040 + 10 * $('.modal:visible').length;
  3. $(this).css('z-index', zIndex);
  4. setTimeout(() => $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack'));
  5. });