From 45d7ba842917a075d6cb2563c78210e3b9210a58 Mon Sep 17 00:00:00 2001 From: Richard Musiol Date: Thu, 16 Nov 2017 15:29:26 +0100 Subject: [PATCH] fix(transition): fix out-in transition getting stuck with v-if (#7023) fix #6687 --- src/platforms/web/runtime/components/transition.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/web/runtime/components/transition.js b/src/platforms/web/runtime/components/transition.js index cb998aea47..6111d8cbbc 100644 --- a/src/platforms/web/runtime/components/transition.js +++ b/src/platforms/web/runtime/components/transition.js @@ -161,7 +161,9 @@ export default { oldChild && oldChild.data && !isSameChild(child, oldChild) && - !isAsyncPlaceholder(oldChild) + !isAsyncPlaceholder(oldChild) && + // #6687 component root is a comment node + !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment) ) { // replace old child transition data with fresh one // important for dynamic transitions!