Skip to content

Commit 670a96d

Browse files
committedSep 21, 2017
fix(MdOverlay): make all overlays inside body display:fixed by default
1 parent a99e150 commit 670a96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/components/MdOverlay/MdOverlay.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
mounted () {
2222
if (this.mdAttachToParent) {
2323
this.targetEl = this.$el.parentNode.parentNode
24-
} else {
25-
this.targetEl = document.body
2624
}
2725
}
2826
}
@@ -38,11 +36,13 @@
3836
bottom: 0;
3937
left: 0;
4038
z-index: 10;
39+
overflow: hidden;
4140
background: rgba(#000, .6);
4241
transition: .4s $md-transition-default-timing;
4342
transition-property: opacity;
4443
will-change: opacity;
4544
45+
body > &,
4646
&.md-fixed {
4747
position: fixed;
4848
}

0 commit comments

Comments
 (0)