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);