Skip to content

Commit

Permalink
fix(mui): fix RangeWidget onChange handler rjsf-team#2161
Browse files Browse the repository at this point in the history
  • Loading branch information
JonCatmull committed Dec 19, 2022
1 parent dbdf0f4 commit 44f7e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui/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 44f7e0a

Please sign in to comment.