Vue-slider-component: Is there a way to turn off errors.

Created on 22 May 2019  路  5Comments  路  Source: NightCatSama/vue-slider-component

Hi
I get the error: "[VueSlider error]: The "value" cannot be greater than the maximum."
because I allow the user to recalculate the min max after component mount.
It doesn't cause any problems

Is there a way to turn off errors.?

bug

Most helpful comment

Can set silent to true.

All 5 comments

Can set silent to true.

I'm getting the exact same bug. And it clearly _is_ a bug. At no time is the value higher than the max. What is causing this?

@catsclaw Is it because of this situation? #343

I don't think so. My logic is:

Calculate the new max, and the new value. Ensure they are correct.
If the current max is less than the new max, set the new max.
Set the new value.
Set the new max.

So at every step, the values should be correct. I've even tried setting the value to[0, 1] before setting the max and the new value.

@catsclaw Can you reproduce it in the online example?

https://jsfiddle.net/NightCatSama/2xy72dod/10339/

If this does not affect the use, set silent to true.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

creativejeff picture creativejeff  路  7Comments

ericdrobinson picture ericdrobinson  路  4Comments

mayajuni picture mayajuni  路  3Comments

callumacrae picture callumacrae  路  3Comments

bogdan1190 picture bogdan1190  路  5Comments