Bug: Signup Button Loader Runs Without Email and Password Input #1258
Labels
🐞 bug
This is a patch, generally fixing some bugs.
status: todo ⏳
This issue is yet to be seen by the maintainer of the project.
Description
The loader on the Signup button is triggered even when there are no values entered in the email and password fields. This behavior is unexpected, as the loader should only activate when the user has entered valid data and submitted the form.
Steps to Reproduce:
Expected Behavior: The Signup button should only show the loader when valid inputs are provided and the form is submitted.
Actual Behavior: The loader is activated immediately upon clicking the Signup button, regardless of whether the email and password fields are filled.
Impact: This bug may confuse users as it suggests that the signup process has started when it has not.
Proposed Solution
To resolve this issue, we will implement the following changes:
Remove Loader on Empty Fields:
We will modify the logic to ensure that the loader does not run when the email and password fields are empty. This will prevent unnecessary loading indicators when the form is incomplete.
Trigger Loader on Valid Input:
The loader will be activated only when both the email and password fields have valid input and the user submits the form. This ensures that the loading state reflects the actual processing of the signup request.
Form Validation:
Before triggering the loader, the form will be validated to check if the required fields (email and password) are filled. If validation passes, the loader will be triggered; otherwise, an appropriate error message will be displayed without initiating the loader.
Screenshots
Signup_page_issue.webm
Browser 🥦
Google Chrome
Checklist ✅
The text was updated successfully, but these errors were encountered: