Skip to content
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

"Fix validation error message displayed prematurely on page load for form submission" #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vipinmishra0852
Copy link

Description
This pull request fixes the issue where the validation error message was displayed prematurely on page load for the form submission in the CollegePredictor component.

Key Changes:
Implemented logic to ensure the validation error for the rank input only appears after the user attempts to submit the form. This prevents confusion for users as the error message is no longer shown before any interaction.
Added a state variable submitted to track whether the form has been submitted, which controls when to display the validation error messages for the rank and input fields.
This change enhances the user experience by providing clearer feedback only when appropriate.

@suryabulusu
Copy link
Contributor

suryabulusu commented Oct 25, 2024

hey thanks for the PR but someone else made similar changes earlier (#39 ).

Edit: oh wait i realized this is a different file

Copy link
Contributor

@suryabulusu suryabulusu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good -- take a pull of the latest code and resolve merge conflicts. i'll merge then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants