diff --git a/src/components/ComponentConfiguration.stories.tsx b/src/components/ComponentConfiguration.stories.tsx index 7f3184e0..8f4b43d2 100644 --- a/src/components/ComponentConfiguration.stories.tsx +++ b/src/components/ComponentConfiguration.stories.tsx @@ -434,6 +434,11 @@ export const NumberField: Story = { max: '', }, }, + prefill: { + attribute: '', + identifierRole: 'main', + plugin: '', + }, registration: { attribute: '', }, diff --git a/src/registry/number/edit.tsx b/src/registry/number/edit.tsx index e2ad9f0b..dfcdaaa6 100644 --- a/src/registry/number/edit.tsx +++ b/src/registry/number/edit.tsx @@ -9,6 +9,7 @@ import { IsSensitiveData, Key, Label, + Prefill, PresentationConfig, Registration, SimpleConditional, @@ -58,6 +59,7 @@ const EditForm: EditFormDefinition = () => { + @@ -96,6 +98,11 @@ const EditForm: EditFormDefinition = () => { + {/* Prefill tab */} + + + + {/* Translations */} @@ -148,6 +155,11 @@ EditForm.defaultValues = { registration: { attribute: '', }, + prefill: { + plugin: '', + attribute: '', + identifierRole: 'main', + }, }; const DefaultValue: React.FC = () => {