diff --git a/CHANGELOG.md b/CHANGELOG.md index f27151110f..579948c3fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,12 @@ should change the heading of the (upcoming) version to include a major version b - Added `ref` definition to `ThemeProps` fixing [#2135](https://github.com/rjsf-team/react-jsonschema-form/issues/2135) - Updated the `onChange` handler in `Form` to use the new `preventDuplicates` mode of `mergeObjects()` when merging `extraErrors` when live validation is off, fixing [#3169](https://github.com/rjsf-team/react-jsonschema-form/issues/3169) +## @rjsf/material-ui +- Fix RangeWidget missing htmlFor and schema.title [#3281](https://github.com/rjsf-team/react-jsonschema-form/pull/3281) + +## @rjsf/mui +- Fix RangeWidget missing htmlFor and schema.title [#3281](https://github.com/rjsf-team/react-jsonschema-form/pull/3281) + ## @rjsf/utils - Updated `computedDefaults` (used by `getDefaultFormState`) to skip saving the computed default if it's an empty object unless `includeUndefinedValues` is truthy, fixing [#2150](https://github.com/rjsf-team/react-jsonschema-form/issues/2150) and [#2708](https://github.com/rjsf-team/react-jsonschema-form/issues/2708) - Expanded the `getDefaultFormState` util's `includeUndefinedValues` prop to accept a boolean or `"excludeObjectChildren"` if it does not want to include undefined values in nested objects diff --git a/packages/material-ui/src/RangeWidget/RangeWidget.tsx b/packages/material-ui/src/RangeWidget/RangeWidget.tsx index fec76f88d7..ee96f821f1 100644 --- a/packages/material-ui/src/RangeWidget/RangeWidget.tsx +++ b/packages/material-ui/src/RangeWidget/RangeWidget.tsx @@ -29,8 +29,8 @@ const RangeWidget = ({ return ( <> - - {label} + + {label || schema.title} + htmlFor="root" + /> - - {label} + + {label || schema.title} + htmlFor="root" + />