xlsdg / vue-countup-v2

Vue.js component wrap for countUp.js
https://inorganik.github.io/countUp.js/
MIT License
380 stars 56 forks source link

unexpected behavior: counts up then counts down to 0 #22

Closed 1blockologist closed 5 years ago

1blockologist commented 5 years ago

Not sure why this is happening

I updated to 4.0.0 and countup latest, and now my counters go up onReady but then all count down to zero.

before I show any code I was wondering if anyone else has seen this and fixed it

perhaps the ICountUp object is no longer a separate instance and a counting down instance influences all the others?

1blockologist commented 5 years ago

I had to comment out instance.update(that.endVal + 100); in the countup options file

onReady: function(instance, CountUp) { const that = this; //instance.update(that.endVal + 100); }