Преглед изворни кода

fix transition appear check for nested components

Evan You пре 10 година
родитељ
комит
3e0cda6685
1 измењених фајлова са 1 додато и 1 уклоњено
  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
   }