Skip to content

Commit

Permalink
Merge pull request #1993 from nextcloud/fix/ensure_closed_event_is_di…
Browse files Browse the repository at this point in the history
…spatched

Ensure the closed event is dispatched in AppSidebar
  • Loading branch information
PVince81 authored Jun 1, 2021
2 parents c49c1fb + 341eac8 commit 10b223d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/AppSidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ export default {
},
},
beforeDestroy() {
// Make sure that the 'closed' event is dispatched even if this element is destroyed before the 'after-leave' event is received.
this.$emit('closed')
},
methods: {
onBeforeEnter(element) {
/**
Expand Down

0 comments on commit 10b223d

Please sign in to comment.