networknt / networknt/react-schema-form
validation behaviour on blur
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 356
- Forks
- 94
- Avg merge
- 19h 36m
- Merged PRs (30d)
- 4
Description
Is there a way I can change the validation behavior? It seems to affect the demo page too.
If I load a form, I can immediately save it without actually firing any validation. I also want to validation errors to immediately load (the red ones) when I initialize it. Only after entering some data then removing it with backspace will show the "this field is required" error for example.
Additionally, and I think this is a more generic question with regards to react, but still related:
if I have
<mycontainer >
<SchemaForm />
<MySubmitButton />
</mycontainer>
How can I make the mysubmitbutton check the validity of the form prior to allowing the submit, or even bind the enablement status of the button to the validity status of the form?
thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the demo page and the SchemaForm usage described in the issue. Determine how initialization, blur validation, saving, and an external submit button should interact; done would mean the requested validation behavior and a way to observe form validity are clearly implemented or documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100