diff --git a/src/components/MdList/MdListItem/MdListItem.vue b/src/components/MdList/MdListItem/MdListItem.vue index 952ff7bc2..e52199b06 100644 --- a/src/components/MdList/MdListItem/MdListItem.vue +++ b/src/components/MdList/MdListItem/MdListItem.vue @@ -67,15 +67,19 @@ } if (shouldRenderButtonWithListener(listeners)) { - if (hasChildrenButtons(children)) { - return MdListItemFakeButton - } - return MdListItemButton + return renderButtonWithListener(children) } return MdListItemDefault } + function renderButtonWithListener (children) { + if (hasChildrenButtons(children)) { + return MdListItemFakeButton + } + return MdListItemButton + } + export default { name: 'MdListItem', functional: true,