Skip to content

v2.38.2 - File component not showing errors#650

Merged
travist merged 1 commit intoformio:2.xfrom
CatBakun:bugfix/2.38.2-required-file-component
Oct 2, 2019
Merged

v2.38.2 - File component not showing errors#650
travist merged 1 commit intoformio:2.xfrom
CatBakun:bugfix/2.38.2-required-file-component

Conversation

@CatBakun
Copy link
Contributor

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.

@CatBakun CatBakun changed the title File component not showing errors v2.38.2 - File component not showing errors Sep 27, 2019
@travist
Copy link
Member

travist commented Oct 2, 2019

Thanks @CatBakun!

@travist travist merged commit 9b29266 into formio:2.x Oct 2, 2019
@CatBakun CatBakun deleted the bugfix/2.38.2-required-file-component branch October 2, 2019 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants