Skip to content

Commit

Permalink
Fix #4680: 9.6.2 Slider onSlideEnd have correct new value (#4782)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 17, 2023
1 parent f9d4662 commit cca574f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/lib/slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export const Slider = React.memo(
if (dragging.current) {
dragging.current = false;

props.onSlideEnd && props.onSlideEnd({ originalEvent: event, value: props.value });
const newValue = setValue(event);

props.onSlideEnd && props.onSlideEnd({ originalEvent: event, value: newValue });

unbindDocumentMouseMoveListener();
unbindDocumentMouseUpListener();
Expand Down

0 comments on commit cca574f

Please sign in to comment.