Skip to content

Commit

Permalink
fix(transition): should trigger transition hooks for v-show in ie9
Browse files Browse the repository at this point in the history
fix #5525
  • Loading branch information
yyx990803 committed Jul 21, 2017
1 parent 082fc39 commit 9b4dbba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platforms/web/runtime/directives/show.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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, () => {
Expand Down

0 comments on commit 9b4dbba

Please sign in to comment.