')}: `, targetProperty,
'value:', value,
'expression: ', expression,
'error: ', error)
@@ -272,7 +277,6 @@ export abstract class FormProperty {
* @returns `true` if any visibility binding of type `oneOf` or `allOf` has been processed. Otherwise `false`.
*/
private __bindVisibility_oneOf_or_allOf(): boolean {
- /**
/**
*
* "oneOf":[{
@@ -309,7 +313,7 @@ export abstract class FormProperty {
for (const item of this.schema.visibleIf.oneOf) {
for (const depPath of Object.keys(item)) {
const prop = this.searchProperty(depPath);
- const propVal = prop.value;
+ const propVal = prop ? prop.value : null;
if (this.__evaluateVisibilityIf(this, prop, dependencyPath, propVal, item[depPath])) {
return true
}
@@ -323,7 +327,7 @@ export abstract class FormProperty {
for (const item of this.schema.visibleIf.allOf) {
for (const depPath of Object.keys(item)) {
const prop = this.searchProperty(depPath);
- const propVal = prop.value;
+ const propVal = prop ? prop.value : null;
if (!this.__evaluateVisibilityIf(this, prop, dependencyPath, propVal, item[depPath])) {
return false;
}