diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c3ca760f1..8c83758e8d 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.24.3 + +## Dev / docs / playground +- Fixed issue with selector, where validator was getting refreshed on clicking on anything in selector. [#4472](https://github.com/rjsf-team/react-jsonschema-form/pull/4472) + # 5.24.2 ## @rjsf/utils diff --git a/packages/playground/src/components/Playground.tsx b/packages/playground/src/components/Playground.tsx index ca285bfbff..a34848f517 100644 --- a/packages/playground/src/components/Playground.tsx +++ b/packages/playground/src/components/Playground.tsx @@ -86,7 +86,9 @@ export default function Playground({ themes, validators }: PlaygroundProps) { setTheme(theTheme); setShowForm(true); setLiveSettings(liveSettings); - setValidator(validator); + if ('validator' in data) { + setValidator(validator); + } setOtherFormProps({ fields, templates, ...rest }); }, [theme, onThemeSelected, themes]