File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export default {
7070 }
7171
7272 if (this .autoZIndex ) {
73- ZIndex .set (' modal' , this .mask , this .baseZIndex + this .$primevue .config .zIndex .modal );
73+ ZIndex .set (' modal' , this .mask , this .baseZIndex || this .$primevue .config .zIndex .modal );
7474 }
7575
7676 this .isBlocked = true ;
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ export default {
358358 this .bindResizeListener ();
359359
360360 if (this .autoZIndex ) {
361- ZIndex .set (' overlay' , el, this .baseZIndex + this .$primevue .config .zIndex .overlay );
361+ ZIndex .set (' overlay' , el, this .baseZIndex || this .$primevue .config .zIndex .overlay );
362362 }
363363
364364 // Issue: #7508
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ export default {
363363 this .position ();
364364
365365 if (this .autoZIndex ) {
366- ZIndex .set (' menu' , el, this .baseZIndex + this .$primevue .config .zIndex .menu );
366+ ZIndex .set (' menu' , el, this .baseZIndex || this .$primevue .config .zIndex .menu );
367367 }
368368 },
369369 onAfterEnter () {
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export default {
145145 this .bindGlobalListeners ();
146146
147147 if (this .autoZIndex ) {
148- ZIndex .set (' modal' , this .mask , this .baseZIndex + this .$primevue .config .zIndex .modal );
148+ ZIndex .set (' modal' , this .mask , this .baseZIndex || this .$primevue .config .zIndex .modal );
149149 }
150150 },
151151 onAfterEnter () {
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export default {
267267 this .bindScrollListener ();
268268
269269 if (this .autoZIndex ) {
270- ZIndex .set (' menu' , el, this .baseZIndex + this .$primevue .config .zIndex .menu );
270+ ZIndex .set (' menu' , el, this .baseZIndex || this .$primevue .config .zIndex .menu );
271271 }
272272
273273 if (this .popup ) {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default {
116116 this .bindResizeListener ();
117117
118118 if (this .autoZIndex ) {
119- ZIndex .set (' overlay' , el, this .baseZIndex + this .$primevue .config .zIndex .overlay );
119+ ZIndex .set (' overlay' , el, this .baseZIndex || this .$primevue .config .zIndex .overlay );
120120 }
121121
122122 this .overlayEventListener = (e ) => {
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ export default {
416416 },
417417 onEnter (el ) {
418418 if (this .autoZIndex ) {
419- ZIndex .set (' menu' , el, this .baseZIndex + this .$primevue .config .zIndex .menu );
419+ ZIndex .set (' menu' , el, this .baseZIndex || this .$primevue .config .zIndex .menu );
420420 }
421421
422422 addStyle (el, { position: ' absolute' , top: ' 0' });
You can’t perform that action at this time.
0 commit comments