@shival99/z-ui 2.0.49 → 2.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2149,8 +2149,13 @@ class ZOverlayZIndexService {
2149
2149
  this._currentZIndex += 2; // +2 to leave room for backdrop (zIndex - 1)
2150
2150
  return zIndex;
2151
2151
  }
2152
- applyToOverlay(_overlayRef) {
2153
- return this.next();
2152
+ applyToOverlay(overlayRef) {
2153
+ const zIndex = this.next();
2154
+ overlayRef.hostElement.style.zIndex = `${zIndex}`;
2155
+ if (overlayRef.backdropElement) {
2156
+ overlayRef.backdropElement.style.zIndex = `${zIndex - 1}`;
2157
+ }
2158
+ return zIndex;
2154
2159
  }
2155
2160
  deferMoveToTop(overlayRef) {
2156
2161
  if (!isPlatformBrowser(this._platformId)) {