-
Notifications
You must be signed in to change notification settings - Fork 3
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
Remove JQuery from form validation code #160
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still going through this, but some immediate input we can get to discussing
Co-authored-by: David Alexander <TheLonelyGhost@users.noreply.github.com>
If I submit an empty form, all of the errors show up, but it also nukes all of the form input labels: Expected behavior from #159 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaks on error rendering -- see above screenshots for details
Good catch -- should be fixed now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Nice work!!
* convert to bootstrap5 * add support for directing back to engineering when on engineering post * fix support for blog on mobile * add test form * Remove JQuery from form validation code (#160) * Replace JQuery in input file and error message code * Replace JQuery in form validation script * Fix event listeners and clean up code * Remove JQuery script * Use query selectors for easier iteration * Make error list clearing more efficient * Use template string literals instead of concatenation Co-authored-by: David Alexander <TheLonelyGhost@users.noreply.github.com> * Fix form labels being deleted when displaying form errors Co-authored-by: David Alexander <TheLonelyGhost@users.noreply.github.com> * remove test form Co-authored-by: Joe Kaufeld <joe@kenzie.academy> Co-authored-by: TimJentzsch <tim-jentzsch@gmx.de> Co-authored-by: David Alexander <TheLonelyGhost@users.noreply.github.com>
Relevant issue: N/A
Description:
This removes the JQuery used in the form validation code in #159. The functionality should be identical, to the best of my knowledge.
I also removed a potential attack vector for script injection and handling in case that the forms don't have the expected structure.
If we are to proceed with this, first move this PR and then #159.
Checklist: