formio / ngFormio

JSON powered form rendering library for AngularJS + Form.io.
http://formio.github.io/ngFormio/
MIT License
99 stars 99 forks source link

v2.38.2 - File component not showing errors #650

Closed CatBakun closed 5 years ago

CatBakun commented 5 years ago

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.

travist commented 5 years ago

Thanks @CatBakun!