Open Sam-Simplifed opened 4 weeks ago
@Sam-Simplifed Great work in debugging! Since you know what and where the issue is, are you willing to step up and provide what seems to be a simple fix for it?
@heath-freenome As we can not add the name or id pros to Steps component. But we can create a custom widget that wraps the Antd Steps component and adds unique id or name attributes. This allows the validation system to identify the step properly.
@Sam-Simplifed we would love a PR that will add these to the base implementation
Prerequisites
What theme are you using?
antd
Version
5.x
Current Behavior
When a step component value is required in rjsf . If a user submit the form without filling the required question then getting error { "name": "required", "property": "Little interest or pleasure in doing things", "message": "This field is required.", "params": { "missingProperty": "Little interest or pleasure in doing things" }, "stack": "must have required property 'Little interest or pleasure in doing things'", "schemaPath": "#/required" } while other antd components are working fine because other components have a id and name prop and if the user submit form without answering the required question then the scroll move to that question and below that "Field is required" message shows up. But in case of Step component, the above error shows in the console after debugging found that the Steps component does not have id or name props.
Expected Behavior
If a user try to submit the form without filling the required fields. Then it should no show the error on the console.
No response
Steps To Reproduce
No response
Environment
Anything else?
No response