Open georgiossalon opened 1 year ago
Here's a playground link. The antd UI indicates that the field is required, and Ajv validation works as expected. The main difference that I see is that the antd theme is missing HTML5 validation.
@nickgros Yeah, the field looks like it would be a required one but in the input tag, the required property is missing. The same applies to your playground link.
Prerequisites
What theme are you using?
antd
Version
5.8.2
Current Behavior
Input fields that are set as required by the scheme are missing the required property in the browser.
In the following code, if you switch to the MaterialUI or the default Form component you do get the expected result. When using the antd Form component via the withTheme you don't.
Here is a dummy Form:
Expected Behavior
In the browser, the input tags should get the required property when the set into the schema.
Steps To Reproduce
Sandbox: CodeSandbox
Environment
Anything else?
No response