From 7ac042930562fbe01a4001284629b4382fbed443 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 12 Dec 2023 09:59:31 +0100 Subject: [PATCH] :bug: Registration attribute *is* supported on cosign v2 --- src/formio/components/cosign.ts | 2 +- test-d/formio/components/cosign-v2.test-d.ts | 17 ++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/formio/components/cosign.ts b/src/formio/components/cosign.ts index 850683e..99ece67 100644 --- a/src/formio/components/cosign.ts +++ b/src/formio/components/cosign.ts @@ -43,7 +43,7 @@ export interface CosignV1ComponentSchema extends Omit({ // translatedErrors is converted into errors by the backend required: 'Je moet een waarde opgeven!!!', }, + // registration tab in builder form + registration: { + attribute: 'foo', + }, // translations tab in builder form openForms: { translations: { @@ -110,16 +114,3 @@ expectNotAssignable({ authPlugin: 'digid', confirmationRecipient: true, }); - -// registration attributes are not supported -expectNotAssignable({ - id: 'yejak', - type: 'cosign' as const, - validateOn: 'blur' as const, - key: 'someCoSign', - label: 'Some cosign', - authPlugin: 'digid', - registration: { - attribute: 'foo', - }, -});