From 42bfd964bf181025d88b1a008a47e26bc8e96028 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 26 Feb 2018 11:06:32 +0800 Subject: [PATCH] fix CountDown Unknown event warning --- src/components/CountDown/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CountDown/index.js b/src/components/CountDown/index.js index e1e85bc2..5b512c83 100644 --- a/src/components/CountDown/index.js +++ b/src/components/CountDown/index.js @@ -96,7 +96,7 @@ class CountDown extends Component { } render() { - const { format = this.defaultFormat, ...rest } = this.props; + const { format = this.defaultFormat, onEnd, ...rest } = this.props; const { lastTime } = this.state; const result = format(lastTime); -- GitLab