Skip to content

5.23.0

Latest
Compare
Choose a tag to compare
@heath-freenome heath-freenome released this 22 Nov 21:01
· 4 commits to main since this release

New features added

Experimental_DefaultFormStateBehavior.constAsDefaults

@rjsf/core

  • Updated SchemaField to no longer make schema fields with const read-only by default, partially fixing #4344

@rjsf/utils

  • Updated Experimental_DefaultFormStateBehavior to add a new constAsDefaults option
  • Updated getDefaultFormState() to use the new constAsDefaults option to control how const is used for defaulting, fixing #4344, #4361 and #4377
  • Use experimental_customMergeAllOf option in functions that have previously missed it.
  • Updated ErrorSchemaBuilder methods addErrors and setErrors to prevent duplicate error messages.

@rjsf/validator-ajv8

  • Fixed issue where error messages do not have title or ui:title if a Localizer function is used. Fixes #4387

Dev / docs / playground

  • Updated the playground to add a selector for the constAsDefaults option