Skip to content

Commit

Permalink
fix(material-ui): fix RangeWidget onChange handler rjsf-team#2161
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCatmull committed Dec 16, 2022
1 parent b7296e1 commit dbdf0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/RangeWidget/RangeWidget.tsx
Expand Up @@ -19,7 +19,7 @@ const RangeWidget = ({
const sliderProps = { value, label, id, name: id, ...rangeSpec(schema) };

const _onChange = (_: any, value?: number | number[]) => {
onChange(value ? options.emptyValue : value);
onChange(value ? value : options.emptyValue);
};
const _onBlur = ({ target: { value } }: React.FocusEvent<HTMLInputElement>) =>
onBlur(id, value);
Expand Down

0 comments on commit dbdf0f4

Please sign in to comment.