Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(drawer): Only render slot when content is inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Jan 20, 2018
1 parent c76bc30 commit 7249010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Drawer/PersistentDrawer/PersistentDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
class="mdc-drawer mdc-drawer--persistent"
v-on="$listeners">
<nav class="mdc-drawer__drawer">
<header class="mdc-drawer__header">
<header
class="mdc-drawer__header"
v-if="$slots['header']">
<div class="mdc-drawer__header-content">
<slot name="header" />
</div>
Expand Down

0 comments on commit 7249010

Please sign in to comment.