h5p-editor-php-library icon indicating copy to clipboard operation
h5p-editor-php-library copied to clipboard

HFP-3852 Fix number field validation

Open otacke opened this issue 1 year ago • 0 comments

When merged in, will fix the validate function of a number field to return true if the field is optional and nothing is set.

Currently, the validate function returns undefined if the field is optional and not value is set. One can work around this, of course, but it feels unintuitive if the return value is a boolean for when the value does not validate but undefined if it validates.

otacke avatar Jan 06 '24 16:01 otacke