There is a redux form and one field inside
<form onSubmit={...}> <ToggleBox collapsed={...}> <Field name="firstName" component="input" type="text" placeholder="First Name" /> </ToggleBox> <button type="submit"> </form> If the firstName field is empty, then the form is invalid, and ToggleBox (collapsed property = false) must be expanded so that the invalid field is highlighted.
How is the redux form properly done in this case?