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 {
1212 } ,
1313 render ( createElement , { children, data, props } ) {
1414 const getItemComponent = ( ) => {
15- const nativeOn = data . nativeOn ;
15+ const on = data . on ;
1616 const interactionEvents = [
1717 'contextmenu' ,
1818 'dblclick' ,
@@ -27,16 +27,6 @@ export default {
2727 return MdListItemLink ;
2828 }
2929
30- if ( nativeOn ) {
31- let counter = interactionEvents . length ;
32-
33- while ( counter -- ) {
34- if ( nativeOn [ interactionEvents [ counter ] ] ) {
35- return MdListItemButton ;
36- }
37- }
38- }
39-
4030 while ( childrenCount -- ) {
4131 const options = children [ childrenCount ] . componentOptions ;
4232
@@ -59,6 +49,16 @@ export default {
5949 }
6050 }
6151
52+ if ( on ) {
53+ let counter = interactionEvents . length ;
54+
55+ while ( counter -- ) {
56+ if ( on [ interactionEvents [ counter ] ] ) {
57+ return MdListItemButton ;
58+ }
59+ }
60+ }
61+
6262 return MdListItemDefault ;
6363 } ;
6464
You can’t perform that action at this time.
0 commit comments