Skip to content

Commit 615a98c

Browse files
Validator should not refresh on clicking a Selector in playground (rjsf-team#4472)
* Validator should not refresh on clicking a Selector in playground * Updated change log * Update CHANGELOG.md --------- Co-authored-by: Heath C <[email protected]>
1 parent b121756 commit 615a98c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
1515
should change the heading of the (upcoming) version to include a major version bump.
1616
1717
-->
18+
# 5.24.3
19+
20+
## Dev / docs / playground
21+
- 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)
22+
1823
# 5.24.2
1924

2025
## @rjsf/utils

packages/playground/src/components/Playground.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default function Playground({ themes, validators }: PlaygroundProps) {
8686
setTheme(theTheme);
8787
setShowForm(true);
8888
setLiveSettings(liveSettings);
89-
setValidator(validator);
89+
if ('validator' in data) {
90+
setValidator(validator);
91+
}
9092
setOtherFormProps({ fields, templates, ...rest });
9193
},
9294
[theme, onThemeSelected, themes]

0 commit comments

Comments
 (0)