Skip to content

Commit a4b2862

Browse files
authored
fix(tab): transitions (bootstrap-vue#901)
1 parent 48d3729 commit a4b2862

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/components/tab.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<transition @enter="enter" @before-leave="beforeLeave" mode="out-in">
2+
<transition @before-enter="beforeEnter" @after-enter="afterEnter" @after-leave="afterLeave" mode="out-in">
33
<component :is="tag"
44
:id="id || null"
55
role="tabpanel"
@@ -8,9 +8,9 @@
88
:aria-expanded="localActive ? 'true' : 'false'"
99
:aria-lablelledby="controlledBy || null"
1010
v-if="localActive || !lazy"
11-
v-show="localActive || lazy"
11+
v-show="localActive"
1212
ref="panel"
13-
>
13+
:css="false">
1414
<slot></slot>
1515
</component>
1616
</transition>
@@ -19,10 +19,13 @@
1919
<script>
2020
export default {
2121
methods: {
22-
enter() {
22+
beforeEnter() {
23+
this.show = false;
24+
},
25+
afterEnter() {
2326
this.show = true;
2427
},
25-
beforeLeave() {
28+
afterLeave() {
2629
this.show = false;
2730
}
2831
},

0 commit comments

Comments
 (0)