Skip to content

Commit

Permalink
[@mantine/core] Slider: Fix onChange prop updates being ignored
Browse files Browse the repository at this point in the history
When updating the "onChange" property of a slider, the change was
ignored and the old property was still used.
  • Loading branch information
Bastian committed Jul 3, 2023
1 parent d8b8f84 commit 6fe441e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Slider/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const Slider = forwardRef<HTMLDivElement, SliderProps>((props, ref) => {
valueRef.current = nextValue;
}
},
[disabled, min, max, step, precision]
[disabled, min, max, step, precision, setValue]
);

const { ref: container, active } = useMove(
Expand Down

0 comments on commit 6fe441e

Please sign in to comment.