question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sliders with decimal step broken

See original GitHub issue

The 9fa6c4a1500d commit broke specific sliders were values are decimal.

For instance, the following slider doesn’t work anymore and only display Integer values:

<rzslider class="slider" rz-slider-floor="0.5" rz-slider-ceil="1.5" rz-slider-step="0.1"
              rz-slider-precision="1" rz-slider-model="slider_data"></rzslider>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ValentinHcommented, Feb 2, 2016

Yes because it was using the old API. Here is the same example with the latest version: http://jsfiddle.net/ycqhf3f8/

0reactions
Hesessescommented, Feb 2, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting decimal value with integer step breaks EuiRangeTrack
Change the decimal value to 2; Hit save changes and notice the console errors (see below for errors). Expected behavior: Allow any combination ......
Read more >
How to make slider use decimal values - Stack Overflow
noUiSlider has a step property. Initialize like this: noUiSlider.create(container, { range: { 'min': 0, 'max': 1000, }, step: 100, ...
Read more >
Slider Decimal Place - Adobe Support Community - 5630095
I am using the slider tool to blur a set of numbers up from 0 to 2.9. Initially, I had the issue that...
Read more >
Number helper with decimals - Home Assistant Community
I just tried actually making a helper and it only allows step size to be set to an integer. So it's broken even...
Read more >
Use decimals with slider control - Power Platform Community
Solved: Hi Is it possible to work with decimals with the slider control? For instance: min = 1, max = 5 and increments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found