If my submit method returns an error for a specific field, how can i make that error disappear when the user interacts with the field again?
<Form onSubmit={() => {
return {test: 'incorrect'};
}}>
{({ formProps }) => (
<form {...formProps}>
<Field name="test" defaultValue="">
{({ fieldProps, error }) => (
<>
<TextField {...fieldProps} />
{error && <ErrorMessage>{error}</ErrorMessage>}
</>
)}
</Field>
<Button type="submit">Submit</Button>
</form>
)}
</Form>