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

HFP-3851 Fix select field validation #193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Jan 4, 2024

When merged in, will fix the validate function of a select field to return true if the field is optional and nothing (-) is chosen.

Close to 10 years ago (!?) the select field’s validate function was amended to allow choosing - which is equivalent to not choosing anything. The new code works fine if the field is mandatory and nothing is chosen - the return value of validate is false. However, if the field is optional and nothing is chosen, currently the return value of validate is undefined.

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.

None yet

1 participant