New experimental features
@rjsf/core
- Updated
MultiSchemaField
to call theonChange
handler after setting the new option, fixing #3997 and #4314
@rjsf/utils
- Added
experimental_customMergeAllOf
option toretrieveSchema()
andgetDefaultFormState()
to allow custom merging ofallOf
schemas - Made fields with const property pre-filled and readonly, fixing #2600
- Added
mergeDefaultsIntoFormData
option toExperimental_DefaultFormStateBehavior
type to control how to handle merging of defaults - Updated
mergeDefaultsWithFormData()
to add new optionaldefaultSupercedesUndefined
that when true uses the defaults rather thanundefined
formData, fixing #4322 - Updated
getDefaultFormState()
to pass true tomergeDefaultsWithFormData
fordefaultSupercedesUndefined
whenmergeDefaultsIntoFormData
has the valueuseDefaultIfFormDataUndefined
, fixing #4322 - Updated
getClosestMatchingOption()
to improve the scoring of sub-property objects that are provided over ones that aren't, fixing #3997 and #4314
Dev / docs / playground
- Updated the
form-props.md
to add documentation for the newexperimental_customMergeAllOf
props and theexperimental_defaultFormStateBehavior.mergeDefaultsIntoFormData
option - Updated the
utility-functions.md
to add documentation for the new optionaldefaultSupercedesUndefined
parameter and the two missing optional fields ongetDefaultFormState()
- Updated the
custom-templates.md
to add a section header for wrappingBaseInputTemplate
- Updated the playground to add controls for the new
mergeDefaultsIntoFormData
option- In the process, moved the
Show Error List
component over one column, making it inline radio buttons rather than a select
- In the process, moved the