Currently, validation for the Add Contact modal seems to be broken (see screenshot below). When clicking on "Add Contact", without the username for the new contact to be added, it breaks down and get stuck on the modal with the function for onSubmit getting triggered.
While users can escape with the cancel button or ESC key, the "Add Contact" button is no longer accessible.
Expected behavior:
Form validation requires users to have a valid username before it can submit the form for "Add Contact".
Screenshots:
To Reproduce:
Steps to reproduce the behavior:
Go to Contacts
Click on "Add Contacts"
Insert information only in the optional fields
Click on "Add Contact" button
See error
Possible Fix:
Include validation as part of the input field for username.
Describe the bug:
Currently, validation for the
Add Contact
modal seems to be broken (see screenshot below). When clicking on "Add Contact", without the username for the new contact to be added, it breaks down and get stuck on the modal with the function foronSubmit
getting triggered.While users can escape with the cancel button or ESC key, the "Add Contact" button is no longer accessible.
Expected behavior:
Form validation requires users to have a valid username before it can submit the form for "Add Contact".
Screenshots:
To Reproduce:
Steps to reproduce the behavior:
Possible Fix:
Include validation as part of the input field for username.