You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reactive require not working properly on page load
Current behavior
Required fields resulted from reactive way of deciding if field should be required is affecting only last one field if there is more then one reactive require.
Expected behavior
Required fields are correctly resolved after page load
Why
It looks like that reactive conditions are run only on last field that use reactive require
How
You have two inputs, two checkboxes. First input should be required if first checkbox is checked, second input should be required if second checkbox is checked. https://codesandbox.io/s/pp1l8j2j90
when you press submit, only one checkbox is required, should be both
The text was updated successfully, but these errors were encountered:
This is the issue of concurrent field updates, when both fieldA and fieldB are setting its property to the next value simultaneously. I've solved this previously, but this issue proves it's still doesn't work properly at some cases.
Environment
What
Reactive require not working properly on page load
Current behavior
Required fields resulted from reactive way of deciding if field should be required is affecting only last one field if there is more then one reactive require.
Expected behavior
Required fields are correctly resolved after page load
Why
It looks like that reactive conditions are run only on last field that use reactive require
How
You have two inputs, two checkboxes. First input should be required if first checkbox is checked, second input should be required if second checkbox is checked.
https://codesandbox.io/s/pp1l8j2j90
when you press submit, only one checkbox is required, should be both
The text was updated successfully, but these errors were encountered: