[Custom Components] must not be an array
@Sidiro23 is already working on this.
Since Jan 15, 2025.
Assessment
This issue has not been assessed yet.
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
- Dominant language
- TypeScript
- Stars
- 706
- Forks
- 493
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from formio/angular
-
question
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
[BUG] <form-builder> move icon is missingMay be free again @PrathameshHegde claimed this 101 days ago, and no pull request is open. Openbug
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
[BUG] "Left (Right-aligned)" label position causes misaligned error messages and descriptionsMay be free again @Victoriya25 claimed this 365 days ago, and no pull request is open. Openbug
-
question
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
milind-soni/OpenMausBot#6730 ·
Maintainers usually reply within 1 day
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Openarea: @angular/build
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
angular/angular-cli#34764 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30384 · 1 comment ·
Maintainers usually reply within 1 day
-
P2
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area:image documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day