We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$root
1 parent b3f7053 commit 10cb3a9Copy full SHA for 10cb3a9
src/components/collapse/collapse.js
@@ -104,7 +104,7 @@ export const BCollapse = /*#__PURE__*/ Vue.extend({
104
this.emitState()
105
})
106
// Listen for "Sync state" requests from `v-b-toggle`
107
- this.$root.$on(EVENT_STATE_REQUEST, id => {
+ this.listenOnRoot(EVENT_STATE_REQUEST, id => {
108
if (id === this.id) {
109
this.$nextTick(this.emitSync)
110
}
0 commit comments