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

Commit

Permalink
fix: misspelled closed to close on @MDCDrawer:closed event and no…
Browse files Browse the repository at this point in the history
… closed event emitted after drawer closed (#207)
  • Loading branch information
tychenjiajun authored and matsp committed Apr 1, 2019
1 parent 2ce1299 commit d46290c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/drawer/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<aside
:class="classes"
class="mdc-drawer"
@MDCDrawer:close="model = false"
@MDCDrawer:closed="onClosed"
>
<slot name="header" />
<slot />
Expand Down Expand Up @@ -73,6 +73,12 @@ export default {
},
beforeDestroy () {
if (this.mdcDrawer) this.mdcDrawer.destroy()
},
methods: {
onClosed () {
this.model = false
this.$emit('closed')
}
}
}
</script>

0 comments on commit d46290c

Please sign in to comment.