Skip to content

Commit 4692c57

Browse files
author
Pooya Parsa
committed
[popover] hide on changed::tab (bootstrap-vue#218)
1 parent f9b4a0e commit 4692c57

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/components/popover.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,12 @@
403403
});
404404
}
405405
406-
hub.$on('hide::modal', () => {
407-
this.cleanup();
408-
});
406+
const cleanup = () => {
407+
this.cleanup()
408+
};
409+
410+
hub.$on('hide::modal', cleanup);
411+
hub.$on('changed::tab', cleanup);
409412
},
410413
411414
mounted() {

0 commit comments

Comments
 (0)