Skip to content

Commit 47ca866

Browse files
committed
If prop is set, unset z-index
1 parent 07eb8c0 commit 47ca866

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/VueFinalModal.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ export default {
112112
},
113113
calculateZIndex() {
114114
if (typeof this.zIndex === 'boolean') {
115-
return this.zIndexBase + 2 * (this.modalStackIndex || 0)
115+
if (this.attach) {
116+
return 'unset'
117+
} else {
118+
return this.zIndexBase + 2 * (this.modalStackIndex || 0)
119+
}
116120
} else {
117121
return this.zIndex
118122
}

0 commit comments

Comments
 (0)