Skip to content

Commit 3aefccb

Browse files
authoredApr 30, 2020
fix: Drawer detection (#1929)
1 parent ca01ea6 commit 3aefccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/components/MdApp/MdApp.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
function getDrawers (children) {
8585
const drawerVnodes = children.filter(child => {
8686
const tag = child.data.slot || normilizeTagName(child.componentOptions.tag)
87-
return tag === 'md-app-drawer'
87+
return ['md-app-drawer', 'md-app-drawer-right', 'md-app-drawer-left'].indexOf(tag) > -1
8888
})
8989
return drawerVnodes.length ? drawerVnodes : []
9090
}

0 commit comments

Comments
 (0)