We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6fe78 commit 4c96d0eCopy full SHA for 4c96d0e
app/code/Magento/Ui/view/base/web/js/modal/modal.js
@@ -340,6 +340,12 @@ define([
340
var zIndex = this.modal.zIndex(),
341
baseIndex = zIndex + this._getVisibleCount();
342
343
+ if (this.modal.data('active')) {
344
+ return;
345
+ }
346
+
347
+ this.modal.data('active', true);
348
349
this.overlay.zIndex(++baseIndex);
350
this.prevOverlayIndex = this.overlay.zIndex();
351
this.modal.zIndex(this.overlay.zIndex() + 1);
@@ -354,6 +360,7 @@ define([
354
360
*/
355
361
_unsetActive: function () {
356
362
this.modal.removeAttr('style');
363
+ this.modal.data('active', false);
357
364
358
365
if (this.overlay) {
359
366
// In cases when one modal is closed but there is another modal open (e.g. admin notifications)
0 commit comments