Skip to content

Commit

Permalink
Fixed Slider with Min="1" change value with click
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Aug 31, 2024
1 parent cf668be commit d4dfc9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ window.Radzen = {
? e.targetTouches[0].pageX - e.target.getBoundingClientRect().left
: e.offsetX;
var percent = offsetX / parent.offsetWidth;
var newValue = percent * max;
var newValue = percent * (max - min) + min;
var oldValue = range ? value[slider.isMin ? 0 : 1] : value;
if (newValue >= min && newValue <= max && newValue != oldValue) {
slider.invokeMethodAsync(
Expand Down

0 comments on commit d4dfc9b

Please sign in to comment.