What's the recommended way to handle hidden fields?
.superRefine to require the text input value only if the checkbox is checked (its field as a value of true).I noticed that depending on how I hide the text field, the meta (and the errors) may not be up-to-date.
Here some relevant code:
In the first case I am not even mounting <form.Field /> while in the second case, I am using the
hidden attribute of HTML to hide the input, but the TSF Field is always mounted/instatiated.I noticed that sometimes the error is not displayed in the first case,
meta.errors is empty. It kind of makes sense to me, so is hidden the recommended way to handle hidden fields in TSF?