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 banner alt text require #998

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

kirkkwang
Copy link
Contributor

Story

The banner crop javascript was doing a e.preventDefault(); which then allowed the form being submitted without the alt text which is a required field. This commit will add a check to see if all the required fields are filled in and if not then the function should not execute and therefore not preventDefault.

Ref:

Screenshots / Video

Zight.Recording.2024-03-13.at.13.02.05.mp4

The banner crop javascript was doing a `e.preventDefault();` which then
allowed the form being submitted without the alt text which is a
required field.  This commit will add a check to see if all the required
fields are filled in and if not then the function should not execute and
therefore not preventDefault.

Ref:
  - #948
@kirkkwang kirkkwang force-pushed the i948-require-banner-alt-text branch from 095cb9b to 9ad083e Compare March 13, 2024 20:14
@kirkkwang kirkkwang merged commit c6e1db8 into main Mar 13, 2024
6 of 7 checks passed
@kirkkwang kirkkwang deleted the i948-require-banner-alt-text branch March 13, 2024 20:43
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