Skip to content

Slider's labels turns to numbers wen width is small enough. #1634

Discussion options

You must be logged in to vote

Please provide a jsfiddle, we really dont have time to debug your website and find the relevant code....

however, i found your code for interpretLabel

...
_label_value = _label_value.map(function(_label_value_ele){
--
  | return _label_value_ele[0];
  | });
...

The map function does not seem to find the appropriate labels for given float values (which occur when you change the width).
The slider is just displaying the values you are returning from your calculation in interpretLabel, so debug this part of the code and change the return value accordingly for all cases.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1634 on October 06, 2020 19:28.