File tree 2 files changed +3
-26
lines changed 2 files changed +3
-26
lines changed Original file line number Diff line number Diff line change 28
28
</template >
29
29
30
30
<script >
31
- import Vue from " vue" ;
32
31
import MdComponent from " core/MdComponent" ;
33
32
import MdPortal from " components/MdPortal/MdPortal" ;
34
33
import MdOverlay from " components/MdOverlay/MdOverlay" ;
@@ -45,18 +44,7 @@ export default new MdComponent({
45
44
mdActive: Boolean ,
46
45
mdTarget: {
47
46
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
60
48
},
61
49
mdBackdrop: {
62
50
type: Boolean ,
Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
- import Vue from ' vue '
10
+
11
11
import MdPortal from " components/MdPortal/MdPortal" ;
12
12
13
13
export default {
@@ -18,18 +18,7 @@ export default {
18
18
props: {
19
19
mdTarget: {
20
20
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
33
22
},
34
23
mdActive: Boolean ,
35
24
mdAttachToParent: Boolean ,
You can’t perform that action at this time.
0 commit comments