Open
Description
I am using a custom component with the following config:
{
type: 'cascade',
selector: 'app-cascade',
title: 'Cascade Select',
group: 'basic',
icon: 'angle-double-down',
editForm: minimalEditForm,
fieldOptions: ['key'],
changeEvent: 'valueChange',
schema: {
customDefaultValue: (ctx) => {
const fields = ctx.component.customOptions.filterValues;
return fields.map((field) => ({
key: field.selectParameter,
value: field.defaultParameter,
}));
},
},
}
Value type for the component is:
{key: string, value: string}[]
When changing value, the following error is shown as validation error:
{field_label_here} must not be an array