Skip to content

Commit 10ae519

Browse files
author
Michele Moresi
committed
MdDialog to target specific element vuematerial#2253
1 parent d078d14 commit 10ae519

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

src/components/MdDialog/MdDialog.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
</template>
2929

3030
<script>
31-
import Vue from "vue";
3231
import MdComponent from "core/MdComponent";
3332
import MdPortal from "components/MdPortal/MdPortal";
3433
import MdOverlay from "components/MdOverlay/MdOverlay";
@@ -45,18 +44,7 @@ export default new MdComponent({
4544
mdActive: Boolean,
4645
mdTarget: {
4746
type: null,
48-
validator(value) {
49-
if (HTMLElement && value && value instanceof HTMLElement) {
50-
return true;
51-
}
52-
53-
Vue.util.warn(
54-
"The md-target-el prop is invalid. You should pass a valid HTMLElement.",
55-
this
56-
);
57-
58-
return false;
59-
},
47+
default:null
6048
},
6149
mdBackdrop: {
6250
type: Boolean,

src/components/MdOverlay/MdOverlay.vue

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</template>
88

99
<script>
10-
import Vue from 'vue'
10+
1111
import MdPortal from "components/MdPortal/MdPortal";
1212
1313
export default {
@@ -18,18 +18,7 @@ export default {
1818
props: {
1919
mdTarget: {
2020
type: null,
21-
validator(value) {
22-
if (HTMLElement && value && value instanceof HTMLElement) {
23-
return true;
24-
}
25-
26-
Vue.util.warn(
27-
"The md-target-el prop is invalid. You should pass a valid HTMLElement.",
28-
this
29-
);
30-
31-
return false;
32-
},
21+
default:null
3322
},
3423
mdActive: Boolean,
3524
mdAttachToParent: Boolean,

0 commit comments

Comments
 (0)