Permalink
Browse files

fix(collapse): reference to this.$el

  • Loading branch information...
tmorehouse committed Jul 22, 2017
1 parent dcd869a commit eb012959ea220fbfedadf82f7a632ae5719c020a
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/components/collapse.vue
@@ -12,7 +12,6 @@
@after-leave="onAfterLeave"
>
<div v-show="show"
ref="collapse"
:id="id || null"
:class="classObject"
@click.native="clickHandler"
@@ -147,7 +146,7 @@
},
handleResize() {
// Handler for orientation/resize to set collapsed state
this.show = (getComputedStyle(this.$refs.collapse).display === 'block');
this.show = (getComputedStyle(this.$el).display === 'block');
},
},
created() {

0 comments on commit eb01295

Please sign in to comment.