Skip to content

Commit

Permalink
Fixed #7257 - Slider yields float values when not dragging handles be…
Browse files Browse the repository at this point in the history
…forehand
  • Loading branch information
tugcekucukoglu committed Feb 20, 2025
1 parent 9868036 commit c2dec99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default {
this.updateModel(event, newValue);
},
updateModel(event, value) {
let newValue = parseFloat(value.toFixed(10));
let newValue = Math.round(value * 100) / 100;
let modelValue;
if (this.range) {
Expand Down

0 comments on commit c2dec99

Please sign in to comment.