Closed ghost closed 6 years ago
the same bug but in stateless component, how to fix it there?
Hi, I removed line 99 as mentioned above, but still receive this error.
@jericbas In which file did you add the following condition?
if(typeof this.refs.timer !='undefined'){
return this._timer.clearRect(0,0,this.refs.timer.width,this.refs.timer.height)
}
@pegative They may have edited the minified version manually or built it from scratch. Off the top of my head, the process from the CLI is as below.
git clone git@github.com:pughpugh/react-countdown-clock.git
cd react-countdown-clock
npm install
# edit coffee/react-countdown-clock.coffee as needed
# run webpack to build a production copy of the component
webpack -p
# the minified file will be available in ./build
I've not scheudled any time to work on this component at the moment, but I will update this issue if I find some time to work on it.
Same issue, same request > I hope you will find the time to fix soon !
That said, nice component.
Thanks for all the input. This should be fixed in 2.3.0.
I'm getting this error
the problem is in this line:
return this._timer.clearRect(0,0,this.refs.timer.width,this.refs.timer.height)
I solved it by adding condition