-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Validation Error for Select Component and Data Source Type URL #5523
Comments
My initial suggestion is to update core to the latest rc to see if that has resolved. |
I tried @formio/js 5.0.0-rc.47 with @formio/core 2.1.0-dev.tt.3 (both latest versions) and I have same issue. |
I think that problem could be function isValidateableSelectComponent. The function does not check value of validation settings onlyAvailableItems but only existence of this property. Even though the component has disabled validation of onlyAvailableItems (validate.onlyAvailableItems = false), it still performs validation on the available values.
|
Have you attempted this with formiojs@4.19.1 and core@2.0.0? |
Describe the bug
When using the Select component with the DataSource "URL" selected, a validation error occurs in the browser console.
If you use several of these select components with "URL", the browser becomes increasingly slower and even stops. The form is also hardly usable anymore.
Version/Branch
├── @formio/js@5.0.0-rc.39 ├── @formio/core@2.0.0-rc.10
Steps To Reproduce
Expected behavior
No error. Form works well.
Actual behavior
Validator error: Failed to validate available values in select component 'organizationalUnitName': data source url is not valid}
Additional context
Seems the error is cause from
https://github.com/formio/core/blob/v2.0.0-rc.10/src/process/validation/rules/validateAvailableItems.ts#L141
The text was updated successfully, but these errors were encountered: