Просмотр исходного кода

fix CountDown Unknown event warning

jim 7 лет назад
Родитель
Сommit
42bfd964bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/components/CountDown/index.js

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