-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conditional visibility not working when field order is changed #1385
Comments
Yeah I was about to ask why the values subscription does not cover the initial value changes. As it also changes the value. At least there is a "sort of clean" work around. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case of conditional visibility, if the parent field of a field comes after it in the schema then the conditional visibility doesn't works.Example:
This works (field 1 is visible)
This doesn't (field 1 is not visible)
`fields: [
],`
One of the solution to this is that we add the subscription for initial along with value here:
But the react final forms also have a bug due to which the field api doesn't re-renders on change of initial Value. Raised PR(final-form/react-final-form#1034), but there is no response from their end.
Is there any other way to fix this issue?
CC: @Hyperkid123 @rvsia
The text was updated successfully, but these errors were encountered: