Fix order and z-index of backdrop for stacked modal

Closes #14588
This commit is contained in:
Cédric Krier
2026-02-06 19:00:24 +01:00
parent eee2a18f73
commit 57b9ccf407
+4 -4
View File
@@ -1339,13 +1339,13 @@ var Sao = {
var modalZIndex = 1040;
jQuery('.modal.in').each(function(index) {
var $modal = jQuery(this);
modalZIndex++;
modalZIndex += 10;
$modal.css('zIndex', modalZIndex);
$modal.next('.modal-backdrop.in').addClass('hidden')
.css('zIndex', modalZIndex - 1);
$modal.prev('.modal-backdrop.in').addClass('hidden')
.css('zIndex', modalZIndex - 5);
});
jQuery('.modal.in:visible:last').focus()
.next('.modal-backdrop.in').removeClass('hidden');
.prev('.modal-backdrop.in').removeClass('hidden');
}
}());