Email required bug #352
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Type: Bug
Something isn't working
Issue
After the commit fd0ffa6 in release 8.4, the forms cannot be validated, if you've a required email input field.
It seems like the validator is not correctly being set, i suspect it to because all validators are being set on form initialization, but the email fields are being added afterwards, when clicking the "+" label.
Expected Behavior
The validator should be triggered and the field should be set as valid when filled out with a valid email.
Actual Behavior
The application does not run the needed validators on input change. If email input has been filled out by any value or a valid email, the validator will never set the field as valid.
When inspecting the formGroup -> controls, i can see the email_addresses as "INVALID" and error is set as a invalid because it is required.
Possible Fix
None
Steps to Reproduce
Context
We cannot save any forms with a required email input.
Your Environment
The text was updated successfully, but these errors were encountered: