diff --git a/src/platforms/web/runtime/transition-util.js b/src/platforms/web/runtime/transition-util.js index d6c8fdf2b28..661f420d07f 100644 --- a/src/platforms/web/runtime/transition-util.js +++ b/src/platforms/web/runtime/transition-util.js @@ -69,8 +69,11 @@ export function nextFrame (fn: Function) { } export function addTransitionClass (el: any, cls: string) { - (el._transitionClasses || (el._transitionClasses = [])).push(cls) - addClass(el, cls) + const transitionClasses = el._transitionClasses || (el._transitionClasses = []) + if (transitionClasses.indexOf(cls) < 0) { + transitionClasses.push(cls) + addClass(el, cls) + } } export function removeTransitionClass (el: any, cls: string) {