visibillity rules change to evaluate child rules on a change.

This commit is contained in:
Diamantis Tziotzios 2019-02-07 10:26:00 +02:00
parent ad84ff8235
commit 35b7c8190a
1 changed files with 3 additions and 0 deletions

View File

@ -38,10 +38,13 @@ export class VisibilityRulesService {
for (let i = 0; i < visibilityRule.sourceVisibilityRules.length; i++) {
if (value != null && (this.parseValue(value) !== this.parseValue(visibilityRule.sourceVisibilityRules[i].sourceControlValue))) {
this.elementVisibilityMap.set(visibilityRule.targetControlId, false);
this.updateValueAndVisibility(visibilityRule.targetControlId, null);
// this.clearValues(targetPathKey);
return;
}
}
this.elementVisibilityMap.set(visibilityRule.targetControlId, true);
this.updateValueAndVisibility(visibilityRule.targetControlId, null);
}
parseValue(value: any) {