File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default {
12
12
} ,
13
13
render ( createElement , { children, data, props } ) {
14
14
const getItemComponent = ( ) => {
15
- const nativeOn = data . nativeOn ;
15
+ const on = data . on ;
16
16
const interactionEvents = [
17
17
'contextmenu' ,
18
18
'dblclick' ,
@@ -27,16 +27,6 @@ export default {
27
27
return MdListItemLink ;
28
28
}
29
29
30
- if ( nativeOn ) {
31
- let counter = interactionEvents . length ;
32
-
33
- while ( counter -- ) {
34
- if ( nativeOn [ interactionEvents [ counter ] ] ) {
35
- return MdListItemButton ;
36
- }
37
- }
38
- }
39
-
40
30
while ( childrenCount -- ) {
41
31
const options = children [ childrenCount ] . componentOptions ;
42
32
@@ -59,6 +49,16 @@ export default {
59
49
}
60
50
}
61
51
52
+ if ( on ) {
53
+ let counter = interactionEvents . length ;
54
+
55
+ while ( counter -- ) {
56
+ if ( on [ interactionEvents [ counter ] ] ) {
57
+ return MdListItemButton ;
58
+ }
59
+ }
60
+ }
61
+
62
62
return MdListItemDefault ;
63
63
} ;
64
64
You can’t perform that action at this time.
0 commit comments