IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 506 forks source link

On keyboard tab, slider value changes #577

Open cscgrad opened 5 years ago

cscgrad commented 5 years ago

When tabbing to a slider, if the "step" is 0.1, and "from" is a fraction (e.g. 2.9) and the slider width is <= 325px, the value changes to 3.0

Please see the following: http://jsfiddle.net/wsk7y08a/59/

IonDen commented 5 years ago

Seems like a bug. Thanks for finding it.

praveensingh1985 commented 4 years ago

Any chance to solve this problem? It would be great if there is solution.

kiendo90 commented 3 years ago

@IonDen this issue is raising on my PC too. Fix please...!

IonDen commented 3 years ago

Hi, guys. I will rise priority of this bug and will try to fix it in upcoming days.

raudner77 commented 3 years ago

Whats the status of this bug? Is it solved yet? I have a dialog for making a reservation where you can add a quantity/trays (with input or the slider) and a price. The quantity sets automatically the value of the slider and the trays, if I change the slider value it will be set to the trays/quantity. This works fine. When I change the price and press tab, the slider will be focused and sets a random value to my quantity, because the onChange Event is fired. Why is the data.from value set to 9 when the slider is focused?! I will attach a video.

https://user-images.githubusercontent.com/90403412/132713243-36c664ce-e81d-4b30-a593-e8c0575294f3.mp4

Relax594 commented 1 month ago

Same issue here when tabbing from an input to the slider.

When removing this line of code, it is working fine. However onChange is not triggered then, leading to followup issues.

https://github.com/IonDen/ion.rangeSlider/blob/b4c444389304652bfc7bf2fe3aa86ed84453cb35/js/ion.rangeSlider.js#L756

It is possible to have a fix for that @IonDen?