We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e130a6 commit 19378d9Copy full SHA for 19378d9
packages/commons/src/events/FieldConfig.ts
@@ -845,7 +845,8 @@ const LoaderField = BaseField.extend({
845
export type LoaderField = z.infer<typeof LoaderField>
846
847
const HiddenField = BaseField.extend({
848
- type: z.literal(FieldType.HIDDEN)
+ type: z.literal(FieldType.HIDDEN),
849
+ required: z.literal(false).optional() // Hidden fields cannot be required
850
}).describe(
851
'A non-interactive, hidden field that only hold a value in the form'
852
)
0 commit comments