Open-source E-Commerce shopping platform for embedded electronics. Buy Electronic & Semiconductor Components, Order PCB Fabrication and Assembly Services. All at one place.
Describe the bug
When user enter a password which does not match the requirements (at least 8 characters, one uppercase, one lowercase, one number and one special character), then no error message is shown. This may cause user to get confused as to why sign up is not happening even though he/she has entered all the details correctly
Describe the bug When user enter a password which does not match the requirements (at least 8 characters, one uppercase, one lowercase, one number and one special character), then no error message is shown. This may cause user to get confused as to why sign up is not happening even though he/she has entered all the details correctly
To Reproduce Open https://www.circuitparts.in/auth/signup or localhost:3000/auth/signup if running locally. Enter the following details
First Name : John Last Name : Doe Email : johndoe779@gmail.com Password : 1234abcd
On clicking on Create Account, nothing happens, neither is any error message shown.
Expected behavior An error message is shown as shown in image below, if password (or any other input) does not meet requirements![image](https://github.com/circuitparts/store/assets/29670290/c142ea07-acf5-4b96-bd6d-06a306a8fbb4)
Version NA
Possible Solution We could use the ErrorMessage component which Formik provides, as shown in the code snippet below
Moreover to display form error only on submit we could disable validateonChange and validateonBlur as shown below