-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Border-lines are malfunctioning in the facility creation page #4394
Comments
@Ashesh3 can you remove the invalid:border-danger-500 from cui-input-base class? I added it to make required fields error out if it's invalid / empty. or is there a way to not validate the input until the element got focus or something? |
@rithviknishad I am afraid that'd require additional JS to keep a watch for the initial focus, how about we keep the existing behavior where the fields will only be validated after a form submission? cc: @nihal467 |
I thought there was something like (HTML way) since it's pretty common behaviour in other websites to not validate until focus. Additional JS, I also wouldn't proceed 😅 |
Describe the bug
When we are opening the facility creation page, by default, some field borderlines are red.
To Reproduce
https://care.coronasafe.in/facility/create
Expected behavior
red borderline should only be shown when there is an error by the user.
Screenshots
The text was updated successfully, but these errors were encountered: