npm @rjsf/core 6.1.2

4 hours ago

@rjsf/antd

  • Updated SelectWidget to add a static getPopupContainerCallback to the SelectWidget component, partially fixing #3609
    • Also, added the explicit open state to the Select in conjunction with providing the setOpen as the onOpenChange prop
  • In BaseInputTemplate added comments explaining why step='1' is returned, closing #4022

@rjsf/mantine

  • Align Mantine’s behavior with other themes when clearing string fields: clearing an input now removes the key from formData instead of setting it to an empty string. (#4875)

@rjsf/utils

@rjsf/validator-ajv8

  • Updated CustomValidatorOptionsType to add new extenderFn?: (ajv: Ajv) => Ajv prop
  • Updated createAjvInstance() to add new extenderFn?: (ajv: Ajv) => Ajv parameter, using it to extend the ajv instance, fixing #4746
    • Updated the AJV8Validator and compileSchemaValidatorsCode() to pass extenderFn from the options into createAjvInstance()
  • Updated transformRJSFValidationErrors() to add filtering of duplicate anyOf/oneOf based errors from the returned errors, fixing #4167

Dev / docs / playground

  • Updated DemoFrame as follows to fix #3609
    • Override antd's SelectWidget.getPopupContainerCallback callback function to return undefined
    • Added a AntdSelectPatcher component that observes the creation of antd select dropdowns and makes sure they open in the correct location
    • Update the antd theme wrapper to render the AntdSelectPatcher, AntdStyleProvider and ConfigProvider with it's own getPopupContainer() function inside of a FrameContextConsumer
  • Updated the base TypeScript configuration to use "moduleResolution": "bundler"
  • Updated the validation.md documentation to note that HTML 5 validation is not translatable via RJSF translation mechanisms and should be turned off, fixing #4092
    • Also added documentation for the new extenderFn prop on CustomValidatorOptionsType

Don't miss a new core release

NewReleases is sending notifications on new releases.