Reproduce:
1 - Render a form with a required file component.
2 - Add a file
3 - Remove the file
Expected result: The required file component shows a validation error.
Actual result: The required file component never shows error messages.
This was happening for 2 things:
1 - The file component value is [""] after removing all images.
2 - The ngModel for the file component never gets dirty state.
ngFormio Version: 2.38.2
Reproduce: 1 - Render a form with a required file component. 2 - Add a file 3 - Remove the file
Expected result: The required file component shows a validation error.
Actual result: The required file component never shows error messages.
This was happening for 2 things: 1 - The file component value is
[""]
after removing all images. 2 - The ngModel for the file component never gets dirty state.