From 4adf26735fae8caeb8172c909afd0f3ca32d695f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Jun 2019 11:35:06 +0200 Subject: Fix error in form when scheduling video publication --- client/src/app/shared/forms/form-reactive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/shared/forms') diff --git a/client/src/app/shared/forms/form-reactive.ts b/client/src/app/shared/forms/form-reactive.ts index 0d40b6f4a..6aec2937d 100644 --- a/client/src/app/shared/forms/form-reactive.ts +++ b/client/src/app/shared/forms/form-reactive.ts @@ -57,7 +57,7 @@ export abstract class FormReactive { // Don't care if dirty on force check const isDirty = control.dirty || forceCheck === true - if (control && isDirty && !control.valid) { + if (control && isDirty && control.enabled && !control.valid) { const messages = validationMessages[ field ] for (const key of Object.keys(control.errors)) { formErrors[ field ] += messages[ key ] + ' ' -- cgit v1.2.3