Fix: Email Input Field Hides on Invalid Email Submission #353
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Title:
Fix: Email Input Field Hides on Invalid Email Submission (#4356)
Error Screenshot:
Correct Version Screenshot:
Description:
I’ve fixed the issue where the email input field was disappearing when an invalid email was entered in the subscription form. This behavior was caused by the form validation code, which unintentionally hides the input field upon validation failure. This made it difficult for users to correct their input, as the field was no longer visible.
Problem:
Solution:
Code Changes:
Original Issue (Incorrect):
Correct Code (Fixed):
Additionally, I have added these CSS changes:
Testing:
File Location:
The issue was found in the HTML and JavaScript files related to the subscription form, specifically in the footer section of the website. If you are still unable to locate the file, please let me know the project structure, and I’ll assist you further.
Request:
Please review my changes and accept this pull request. I believe this fix will significantly improve the user experience for those interacting with the subscription form.