diff --git a/CHANGELOG.md b/CHANGELOG.md index a37377c983..3c8452c0ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,11 @@ it according to semantic versioning. For example, if your PR adds a breaking cha should change the heading of the (upcoming) version to include a major version bump. --> +# 5.0.0-beta.14 + +## @rjsf/core +- Added `ref` definition to `ThemeProps` fixing [#2135](https://github.com/rjsf-team/react-jsonschema-form/issues/2135) + # 5.0.0-beta.13 ## @rjsf/playground diff --git a/packages/core/src/withTheme.tsx b/packages/core/src/withTheme.tsx index b3c03bdac5..d6367de70a 100644 --- a/packages/core/src/withTheme.tsx +++ b/packages/core/src/withTheme.tsx @@ -13,7 +13,9 @@ export type ThemeProps< > = Pick< FormProps, "fields" | "templates" | "widgets" | "_internalFormWrapper" ->; +> & { + ref?: React.Ref>; +}; /** A Higher-Order component that creates a wrapper around a `Form` with the overrides from the `WithThemeProps` */ export default function withTheme<