From d0d7d79a3c2f49290bd42f45d6cc8065993f1f49 Mon Sep 17 00:00:00 2001 From: Aliaksandra Ramanenka Date: Thu, 13 Mar 2025 15:53:53 +0200 Subject: [PATCH] FIO-9813: Fixes an issue where parent form will try to submit to the server with hidden invalid nested form where some components have validateWhenHidden --- src/utils/formUtil/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/formUtil/index.ts b/src/utils/formUtil/index.ts index e0bc93c1..d4c3b62f 100644 --- a/src/utils/formUtil/index.ts +++ b/src/utils/formUtil/index.ts @@ -579,7 +579,8 @@ export function shouldProcessComponent(comp: Component, row: any, value: any): b const shouldBeCleared = (!comp.hasOwnProperty('clearOnHide') || comp.clearOnHide) && (comp.hidden || comp.scope?.conditionallyHidden); - const shouldSkipProcessingNestedFormData = noReferenceAttached || shouldBeCleared; + const shouldSkipProcessingNestedFormData = + noReferenceAttached || (shouldBeCleared && !comp.validateWhenHidden); if (shouldSkipProcessingNestedFormData) { return false; }