value change should always be set

This commit is contained in:
Half-Shot
2024-12-09 09:05:18 +00:00
parent 596a574254
commit 4a0a34c1ef

View File

@@ -48,7 +48,7 @@ export const Slider: FC<Props> = ({
disabled, disabled,
}) => { }) => {
const onValueChange = useCallback( const onValueChange = useCallback(
([v]: number[]) => onValueChangeProp?.(v), ([v]: number[]) => onValueChangeProp(v),
[onValueChangeProp], [onValueChangeProp],
); );
const onValueCommit = useCallback( const onValueCommit = useCallback(