Permalink
Browse files

fix(tabs): Show first tab when set to active (#912)

* fix(tabs): Show first tab when set to active
  • Loading branch information...
tmorehouse committed Aug 22, 2017
1 parent 2ebba5d commit d920b1c0f134d579fd1963defa66b0d5d7b79253
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/components/tab.vue
@@ -1,5 +1,8 @@
<template>
<transition @before-enter="beforeEnter" @after-enter="afterEnter" @after-leave="afterLeave" mode="out-in">
<transition @before-enter="beforeEnter"
@after-enter="afterEnter"
@after-leave="afterLeave"
mode="out-in">
<component :is="tag"
:id="safeId()"
role="tabpanel"
@@ -10,7 +13,6 @@
v-if="localActive || !computedLazy"
v-show="localActive"
ref="panel"
:css="false"
>
<slot></slot>
</component>
@@ -36,7 +38,7 @@
data() {
return {
localActive: this.active && !this.disabled,
show: false
show: this.active && !this.disabled
};
},
computed: {

0 comments on commit d920b1c

Please sign in to comment.