Skip to content

Commit d7df468

Browse files
Hwashiang YuStanislav Idolov
authored andcommitted
MC-4114: There is a modal overlay display on Schedule Update page when trying to add a block using Block Content Type
- Removed conditional from _unsetActive to allow overlay z-index to decrease on multiple layers of modal
1 parent 75cc84f commit d7df468

File tree

1 file changed

+1
-8
lines changed
  • app/code/Magento/Ui/view/base/web/js/modal

1 file changed

+1
-8
lines changed

app/code/Magento/Ui/view/base/web/js/modal/modal.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,7 @@ define([
363363
this.modal.data('active', false);
364364

365365
if (this.overlay) {
366-
// In cases when one modal is closed but there is another modal open (e.g. admin notifications)
367-
// to avoid collisions between overlay and modal zIndexes
368-
// overlay zIndex is set to be less than modal one
369-
if (this._getVisibleCount() === 1) {
370-
this.overlay.zIndex(this.prevOverlayIndex - 1);
371-
} else {
372-
this.overlay.zIndex(this.prevOverlayIndex);
373-
}
366+
this.overlay.zIndex(this.prevOverlayIndex - 1);
374367
}
375368
},
376369

0 commit comments

Comments
 (0)