Просмотр исходного кода

fix(transition): should trigger transition hooks for v-show in ie9

fix #5525
Evan You 9 лет назад
Родитель
Сommit
9b4dbba384
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/platforms/web/runtime/directives/show.js

+ 2 - 3
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, () => {