Skip to content

Commit

Permalink
fix: Drawer detection (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugome authored Apr 30, 2020
1 parent ca01ea6 commit 3aefccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdApp/MdApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
function getDrawers (children) {
const drawerVnodes = children.filter(child => {
const tag = child.data.slot || normilizeTagName(child.componentOptions.tag)
return tag === 'md-app-drawer'
return ['md-app-drawer', 'md-app-drawer-right', 'md-app-drawer-left'].indexOf(tag) > -1
})
return drawerVnodes.length ? drawerVnodes : []
}
Expand Down

0 comments on commit 3aefccb

Please sign in to comment.