From e9425525ee5cd7f12d218cdf26f0671c82756ece Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 21 Apr 2016 04:51:08 -0400 Subject: [PATCH] fix v-show without transition --- src/runtime/directives/show.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/directives/show.js b/src/runtime/directives/show.js index 4a9dd437..56b3e57f 100644 --- a/src/runtime/directives/show.js +++ b/src/runtime/directives/show.js @@ -4,14 +4,14 @@ import { enter, leave } from '../vdom-web/modules/transition' export default { bind (el, value, _, vnode) { const transition = getTransition(vnode) - if (value && !isIE9 && transition.appear) { + if (value && transition && transition.appea && !isIE9) { enter(vnode) } el.style.display = value ? '' : 'none' }, update (el, value, _, vnode) { const transition = getTransition(vnode) - if (!isIE9) { + if (transition && !isIE9) { if (value) { enter(vnode) el.style.display = ''