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 6d091ba commit f1d7235Copy full SHA for f1d7235
packages/commons/src/events/FieldConfig.ts
@@ -847,7 +847,8 @@ const LoaderField = BaseField.extend({
847
export type LoaderField = z.infer<typeof LoaderField>
848
849
const HiddenField = BaseField.extend({
850
- type: z.literal(FieldType.HIDDEN)
+ type: z.literal(FieldType.HIDDEN),
851
+ required: z.literal(false).optional() // Hidden fields cannot be required
852
}).describe(
853
'A non-interactive, hidden field that only hold a value in the form'
854
)
0 commit comments