Skip to content

Commit 10cb3a9

Browse files
authored
fix(b-collapse): fix memory leak from $root listener (fixes #3607) (#3608)
1 parent b3f7053 commit 10cb3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/collapse/collapse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const BCollapse = /*#__PURE__*/ Vue.extend({
104104
this.emitState()
105105
})
106106
// Listen for "Sync state" requests from `v-b-toggle`
107-
this.$root.$on(EVENT_STATE_REQUEST, id => {
107+
this.listenOnRoot(EVENT_STATE_REQUEST, id => {
108108
if (id === this.id) {
109109
this.$nextTick(this.emitSync)
110110
}

0 commit comments

Comments
 (0)