New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Vue-slider warn]: Prop[interval] is illegal, Please make sure that the interval can be divisible #24
Comments
There is such a problem, in the case of the interval is a decimal, there will be such a problem I will fix the bug as soon as possible and post a new version. Thank you for the issue |
Now you can solve this, just like: min: 0,
max: 40,
interval: 1,
formatter: (val) => val/10, |
Thank you very much for such a quick reply! |
Has been repaired well:), you can update to the latest version. |
I updated packages with npm update. It shows vue-slider-component@2.1.6 now. Thanks for your help. |
Can you tell me your configuration. |
Sure, here it is:
Then I add additional settings if need (min/max/intervale) beforeMount:
I define additional parameters for the slider like this:
|
Has been repaired, sorry I didn't take into account the minus cases. update to the version@2.1.9 |
Amazing. Please, let me know if you have a PayPal account. I want to make donation. |
Thank you, you will enjoy is enough.:blush: |
Hello! I met situation with same error message.
My values:
I logged all values and operations in condition for this error :
It seems to me the reason is in |
@devorld You're right, But not only for this reason, you can try |
I suspected that JavaScript inaccuracy in working with float numbers can be the reason of this unwanted result in expression. But before trying to solve situation with adapting value which I bind to prop "interval", I decided to ask if some changes will be made in "vue-slider-component" for such situtions. |
@devorld Thank you, I have fixed the potential bug caused |
Thanks, that you are so responsive! I have tested with the same values and continue getting error message, but I think I understood the idea of this check. We are checking if our range ( Like when we have I thought that there will be problem with achieving To summarize:
P.S.: Can you add some flag or condition, to switch off this notification in production mode? For example
|
@devorld You are right, these error messages are only for developers to see, I will be removed in the production environment |
@devorld Added |
@NightCatSama Thanks a lot! And sorry for my importunity, but I misled you with
|
@devorld Thank you, the version has been updated. |
Hello all I need to format the tooltip for range mode is there any idea for it |
Thanks for this amazing component!
I have a warning in console:
[Vue-slider warn]: Prop[interval] is illegal, Please make sure that the interval can be divisible
My parameters are:
'min': 0,
'max': 4,
'interval': 0.1
What am I doing wrong?
Thanks for your help!
The text was updated successfully, but these errors were encountered: