From aba2f5e091836d997a0ea1042105d04d8c5e7419 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 21 Aug 2018 15:59:24 +0800 Subject: [PATCH] fix test case --- components/_util/wave.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/wave.tsx b/components/_util/wave.tsx index 24b40c4c9f..9869cb9d83 100644 --- a/components/_util/wave.tsx +++ b/components/_util/wave.tsx @@ -92,7 +92,7 @@ export default class Wave extends React.Component<{insertExtraNode?: boolean}> { } onTransitionEnd = (e: AnimationEvent) => { - if (e.animationName !== 'fadeEffect') { + if (!e || e.animationName !== 'fadeEffect') { return; } this.resetEffect(e.target as HTMLElement);