react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

Activating Disable HTML 5 validation causes not validation

Open alikhani-dev opened this issue 1 year ago • 1 comments

Prerequisites

What theme are you using?

core

Version

5.12.0

Current Behavior

When Disable HTML 5 validation is sent prop to the Form, no validation works anymore.

Here is an example showcasing the issues : rjsf-team.github

Expected Behavior

should be validated formData.

Steps To Reproduce

No response

Environment

- OS: Windows 10 Enterprise 22H2
- Node: 18.12.0
- npm: 9.2.0
- Google Chrome: 119.0.6045.200 (Official Build) (64-bit)

Anything else?

https://github.com/rjsf-team/react-jsonschema-form/assets/87765316/e31d6df8-2e34-491b-a225-f4ccba3100a1

alikhani-dev avatar Dec 09 '23 08:12 alikhani-dev

@alikhani-dev the issue is that your "table" and "view" properties are not required, so they are not created in the form data.

Try this schema.

You might need to make further adjustments to accomplish exactly what you want.

nickgros avatar Dec 15 '23 20:12 nickgros