You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix playground examples tab
Fixesrjsf-team#4605 by removing the `validator` from the `Example` samples
- Updated the `examples.ts` to remove the `validator` that was causing the issue
- Updated `Samples.ts` to remove the `validator` redefinition from the `Samples` types
- Updated the `Playground` to add the `validator` back onto the `load` function, renaming `validator` to `theValidator` to avoid possible confusion with the state variable
- Updated `Header` to remove `React.` with inputs and replaced `React.FC` with a real functional component using `PropsWithChildren`
- Also fixed up type warning for `onSubthemeSelected` by using proper `SubthemeType`.
- Made the `HeaderButtons` click handlers be `useCallback`s
- Updated `SpecialInput` to remove `React.FC` in favor of a functional component using `PropsWithChildren`, extracting the `onChange` handler to a `useCallback`
- Updated `SubthemeSelector.ts` to export the `SubthemeType`
- Updated `ThemeSelector` and `ValidatorSelector` to extract the `onChange` handlers to a `useCallback`
* - Updated `CHANGELOG.md`
# Conflicts:
# CHANGELOG.md
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ should change the heading of the (upcoming) version to include a major version b
70
70
- Updated the `snapshot-tests` to disable `getTestId()` for snapshots and updated the `formTests.tsx` to add tests for rich text descriptions for generic fields and the `CheckboxWidget`
71
71
- Updated the `uiSchema.md` to document new `enableMarkdownInDescription` prop
72
72
- Updated the `playground` to move `daisyui` theme choice after `chakra-ui` and to stop freezing the samples to avoid an `AJV` validation issue
73
+
- Also removed `validator` from the `examples.ts` to fix [#4605](https://github.com/rjsf-team/react-jsonschema-form/issues/4605)
73
74
- Added a playground example for bundled JSON Schemas
0 commit comments