Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested schema displays permanent field error #27

Closed
DevMedicitv opened this issue Oct 7, 2019 · 3 comments
Closed

Nested schema displays permanent field error #27

DevMedicitv opened this issue Oct 7, 2019 · 3 comments

Comments

@DevMedicitv
Copy link

errorOptions doesn't works well with nested schema.
Once edited a field remains permanently in error state while the the full model is validated.

https://codesandbox.io/s/example-6-j711q

Issue seems to be in VFJS_EVENT_FIELD_MODEL_VALIDATE, where the field validation schema doesn't handle correctly nested key like user.firstName

@jarvelov
Copy link
Owner

jarvelov commented Oct 7, 2019

Hi, thanks for reporting. I'll investigate and report back.

@jarvelov
Copy link
Owner

I've added a fix for this in #28
I'll merge this tomorrow as it's getting late.

@jarvelov
Copy link
Owner

#28 has now been merged.

Another example has been added which shows nested properties in action: https://nxn8y.codesandbox.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants