Skip to content

Commit

Permalink
fix(collapse/toggle): "collapsed" class cleared when component updated (
Browse files Browse the repository at this point in the history
#2102)

fix(collapse/toggle): "collapsed" class cleared when component updated. fixes #1798
  • Loading branch information
lianee authored and tmorehouse committed Oct 25, 2018
1 parent 5348d49 commit 6d33cae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/collapse/collapse.js
Expand Up @@ -187,6 +187,9 @@ export default {
}
this.emitState()
},
updated () {
this.$root.$emit(EVENT_STATE, this.id, this.show)
},
beforeDestroy () {
if (this.isNav && typeof document !== 'undefined') {
window.removeEventListener('resize', this.handleResize, false)
Expand Down

0 comments on commit 6d33cae

Please sign in to comment.