-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe the bug
When loading a form that has preloaded data into disabled number field, and that field is marked as required. The validation will still show the field is required to be filled, though it has a value. Looking at form instance data I noticed that because the value is string (i.e "123" and not 123) the validation is not working correctly.
Version/Branch
@formio/js 5.2.3
To Reproduce
Steps to reproduce the behavior:
- Create form...
- Add number component...
- Mark the component as required and disabled
- Set API attributes so it pre-loads the data from API for instance
- Open the form it should load the data into the number component
- Try submit the validation will kick in and shows validation error thus preventing submission
Expected behavior
Since the number component is already loaded it should just work just fine.
Screenshots

Metadata
Metadata
Assignees
Labels
No labels