Skip to content

Commit 067648e

Browse files
industraladin234
authored andcommitted
fixed vuejs#7444
1 parent 2534219 commit 067648e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platforms/web/runtime/transition-util.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ export function getTransitionInfo (el: Element, expectedType?: ?string): {
122122
hasTransform: boolean;
123123
} {
124124
const styles: any = window.getComputedStyle(el)
125-
const transitionDelays: Array<string> = styles[transitionProp + 'Delay'].split(', ')
126-
const transitionDurations: Array<string> = styles[transitionProp + 'Duration'].split(', ')
125+
const transitionDelays: Array<string> = (styles[transitionProp + 'Delay'] || '').split(', ')
126+
const transitionDurations: Array<string> = (styles[transitionProp + 'Duration'] || '').split(', ')
127127
const transitionTimeout: number = getTimeout(transitionDelays, transitionDurations)
128-
const animationDelays: Array<string> = styles[animationProp + 'Delay'].split(', ')
129-
const animationDurations: Array<string> = styles[animationProp + 'Duration'].split(', ')
128+
const animationDelays: Array<string> = (styles[animationProp + 'Delay'] || '').split(', ')
129+
const animationDurations: Array<string> = (styles[animationProp + 'Duration'] || '').split(', ')
130130
const animationTimeout: number = getTimeout(animationDelays, animationDurations)
131131

132132
let type: ?string

0 commit comments

Comments
 (0)