Skip to content

Commit 5c96daa

Browse files
committed
fix out-in mode duplicate calls
1 parent fcb1e38 commit 5c96daa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/platforms/web/runtime/components/transition.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,15 @@ export default {
6262
if (mode === 'out-in') {
6363
// return old node
6464
// and queue an update when the leave finishes
65-
if (!oldChild.elm._leaveCb) {
65+
if (!oldChild.elm._leaveCb && oldRawChild.data.transition) {
6666
leave(oldChild, () => {
67-
oldRawChild.data.left = true
67+
oldRawChild.data.transition = null
6868
this.$forceUpdate()
6969
})
7070
}
71-
return oldRawChild.data.left ? rawChild : oldRawChild
71+
if (oldRawChild.data.transition) {
72+
return oldRawChild
73+
}
7274
} else if (mode === 'in-out') {
7375
let delayedLeave
7476
const performLeave = () => { delayedLeave() }

0 commit comments

Comments
 (0)