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

Unmounted tab not getting validated #4736

Open
gpadbidri opened this issue May 29, 2021 · 0 comments
Open

Unmounted tab not getting validated #4736

gpadbidri opened this issue May 29, 2021 · 0 comments

Comments

@gpadbidri
Copy link

I have a REDUX Form where on section is TAB based. These Tabs get enabled / disabled based of some selections.

Example:
I have 4 Tabs of which FIRST Tab is MANDATORY - Till here we are good
Tab 2, 3 and 4 enable / disable based of some other choices.
My Issue - If Tab 2 is ENABLED ONLY then it should be REQUIRED else it should not

My observation -
I have used Field Level Validation.
Tab 2 when mounted (i.e. when Tab 2 is Active) I see the fields registered in SYNCERRORS and they disappear as soon I switch the Tab. and hence the form gets submitted.

How do I handle this ? Or if this scenario cannot be handled by redux form ?

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

1 participant