Skip to content

Commit

Permalink
fix: fix slider
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyage committed Feb 4, 2023
1 parent c6b8b5f commit 5cbdc2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const Slider: React.FC<SliderProps> = (props) => {
};

const onEnd = (position: number) => {
props.onChangeAfter?.(position);
const targetValue = getValueByPosition(position);
props.onChangeAfter?.(targetValue);
};

return (
Expand Down

0 comments on commit 5cbdc2a

Please sign in to comment.