From 9b4dbba384bc81a99abe429476729f80cb06d19a Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 20 Jul 2017 20:03:33 -0400 Subject: [PATCH] fix(transition): should trigger transition hooks for v-show in ie9 fix #5525 --- src/platforms/web/runtime/directives/show.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/platforms/web/runtime/directives/show.js b/src/platforms/web/runtime/directives/show.js index 8e51adc1ef..703aa5b6af 100644 --- a/src/platforms/web/runtime/directives/show.js +++ b/src/platforms/web/runtime/directives/show.js @@ -1,6 +1,5 @@ /* @flow */ -import { isIE9 } from 'core/util/env' import { enter, leave } from '../modules/transition' // recursively search for possible transition defined inside the component root @@ -16,7 +15,7 @@ export default { const transition = vnode.data && vnode.data.transition const originalDisplay = el.__vOriginalDisplay = el.style.display === 'none' ? '' : el.style.display - if (value && transition && !isIE9) { + if (value && transition) { vnode.data.show = true enter(vnode, () => { el.style.display = originalDisplay @@ -31,7 +30,7 @@ export default { if (value === oldValue) return vnode = locateNode(vnode) const transition = vnode.data && vnode.data.transition - if (transition && !isIE9) { + if (transition) { vnode.data.show = true if (value) { enter(vnode, () => {