siemens / ix

Siemens Industrial Experience is a design system for designers and developers, to consistently create the perfect digital experience for industrial software products.
https://ix.siemens.io/
MIT License
207 stars 67 forks source link

IxSlider does not work properly when setting step to a non round numbers #1550

Closed AmitSmall closed 2 weeks ago

AmitSmall commented 2 weeks ago

Prerequisites

What happened?

When the step is a non round number, the component is glitching. I can't get decimal values when moving the slider, and it's especially noticeable when the range is not between round numbers. The slider does follow my assigned steps, but the value and trace is stuck on the last round number. I would expect the value and UI to support decimal numbers. Attaching an example

What type of frontend framework are you seeing the problem on?

React

Which version of iX do you use?

2.5.0

Code to produce this issue.

https://stackblitz.com/edit/axotbx-jgdusq?file=src%2Fslider.tsx%3AL15
nuke-ellington commented 2 weeks ago

Should be fixed via #1468 (next release)