Skip to content

Commit

Permalink
feat($theme-default) Propagate toggleSidebar event to parent (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortdiv authored and kefranabg committed Sep 12, 2019
1 parent eb231bf commit e8064b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vuepress/theme-default/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export default {
methods: {
toggleSidebar (to) {
this.isSidebarOpen = typeof to === 'boolean' ? to : !this.isSidebarOpen
this.$emit('toggle-sidebar', this.isSidebarOpen)
},
// side swipe
Expand Down

0 comments on commit e8064b0

Please sign in to comment.