Skip to content

Commit 341eac8

Browse files
committed
Ensure the closed event is dispatched in AppSidebar
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent c49c1fb commit 341eac8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/AppSidebar/AppSidebar.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,11 @@ export default {
397397
},
398398
},
399399
400+
beforeDestroy() {
401+
// Make sure that the 'closed' event is dispatched even if this element is destroyed before the 'after-leave' event is received.
402+
this.$emit('closed')
403+
},
404+
400405
methods: {
401406
onBeforeEnter(element) {
402407
/**

0 commit comments

Comments
 (0)