Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commit45d7ba8

Browse files
neelanceyyx990803
authored andcommitted
fix(transition): fix out-in transition getting stuck with v-if (vuejs#7023)
fixvuejs#6687
1 parenta3246fd commit45d7ba8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export default {
161161
oldChild&&
162162
oldChild.data&&
163163
!isSameChild(child,oldChild)&&
164-
!isAsyncPlaceholder(oldChild)
164+
!isAsyncPlaceholder(oldChild)&&
165+
// #6687 component root is a comment node
166+
!(oldChild.componentInstance&&oldChild.componentInstance._vnode.isComment)
165167
){
166168
// replace old child transition data with fresh one
167169
// important for dynamic transitions!

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp