Fomantic-ui: [slider] Rounded value is not always rounded

Created on 30 Jun 2020  ·  2Comments  ·  Source: fomantic/Fomantic-UI

Bug Report

Despite the code I've spotted in the slider.js codebase to avoid a nasty JS rounding bug, it looks like there are still some cases where this happens.

Steps to reproduce

Move a slider several times to get the value bug. It roughly happens 1 time out of 5 in my app.

Expected result

A value rounded to the closest step (ex: 2.1)

Actual result

(ex: 2.1000000001)

Testcase

https://jsfiddle.net/dfj7urbz/

Screenshot

Capture d’écran 2020-06-30 à 09 03 57

Version

2.7.8
2.8.6

typbug

Most helpful comment

so much reactivity from this team 🎉

Thx!

All 2 comments

Fixed by #1547 #1548

so much reactivity from this team 🎉

Thx!

Was this page helpful?
0 / 5 - 0 ratings