Skip to content

Commit ae0c34a

Browse files
author
Pablo Henrique
authored
Merge pull request vuematerial#853 from valdaph/issue-851
Fix vuematerial#851
2 parents 3a9f793 + b8f1f2e commit ae0c34a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/components/mdList/mdListItem.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)