Skip to content

Commit 6d33cae

Browse files
lianeetmorehouse
authored andcommitted
fix(collapse/toggle): "collapsed" class cleared when component updated (#2102)
fix(collapse/toggle): "collapsed" class cleared when component updated. fixes #1798
1 parent 5348d49 commit 6d33cae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/collapse/collapse.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ export default {
187187
}
188188
this.emitState()
189189
},
190+
updated () {
191+
this.$root.$emit(EVENT_STATE, this.id, this.show)
192+
},
190193
beforeDestroy () {
191194
if (this.isNav && typeof document !== 'undefined') {
192195
window.removeEventListener('resize', this.handleResize, false)

0 commit comments

Comments
 (0)