Browse Source

fix transition appear check for nested components

Evan You 10 năm trước cách đây
mục cha
commit
3e0cda6685
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/platforms/web/runtime/modules/transition.js

+ 1 - 1
src/platforms/web/runtime/modules/transition.js

@@ -46,7 +46,7 @@ export function enter (vnode: VNodeWithData) {
     appearCancelled
   } = data
 
-  const isAppear = !vnode.context.$root._isMounted
+  const isAppear = !vnode.context._isMounted
   if (isAppear && !appear && appear !== '') {
     return
   }