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

Removes oninput for challenge request form #3751

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

jmsmkn
Copy link
Member

@jmsmkn jmsmkn commented Dec 13, 2024

The old functionality was to drop invalid values, this does not seem user friendly. Now, we use the default behaviour of the browser forcing the user to fill in a valid value when they try to submit the form instead.

This also removes the budget default of zero which prevents the requester overlooking the field.

Closes #3748

The old functionality was to drop invalid values, this does not
seem user friendly. Now, we use the default behavioud of
the browser forcing the user to fill in a valid value
when they try to submit the form instead.

Closes #3748
@jmsmkn jmsmkn requested a review from amickan as a code owner December 13, 2024 12:58
amickan
amickan previously approved these changes Dec 13, 2024
Copy link
Contributor

@amickan amickan left a comment

Choose a reason for hiding this comment

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

LGTM! I can't remember why (presumably) I added this strange oninput validation, but it indeed seems redundant, user unfriendly and also not in line with the Django framework.

@jmsmkn
Copy link
Member Author

jmsmkn commented Dec 13, 2024

My guess is for making it easier for the budget response from HTMX, but I don't think that is done anymore.

@amickan
Copy link
Contributor

amickan commented Dec 13, 2024

My guess is for making it easier for the budget response from HTMX, but I don't think that is done anymore.

Ah that's very possible, but that was indeed removed.

@amickan amickan merged commit 0782236 into main Dec 13, 2024
8 checks passed
@amickan amickan deleted the 3748_remove_oninput branch December 13, 2024 13:59
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.

Challenge request clarification questions show up when they should not
2 participants