Skip to content

Commit d2ac1c1

Browse files
authored
Fix: Pass required props to anyof/oneof field components (rjsf-team#4303)
1 parent 9d1ff6d commit d2ac1c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/components/fields/SchemaField.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ function SchemaFieldRender<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
317317
schemaUtils.retrieveSchema(isObject(_schema) ? (_schema as S) : ({} as S), formData)
318318
)}
319319
registry={registry}
320+
required={required}
320321
schema={schema}
321322
uiSchema={uiSchema}
322323
/>
@@ -340,6 +341,7 @@ function SchemaFieldRender<T = any, S extends StrictRJSFSchema = RJSFSchema, F e
340341
schemaUtils.retrieveSchema(isObject(_schema) ? (_schema as S) : ({} as S), formData)
341342
)}
342343
registry={registry}
344+
required={required}
343345
schema={schema}
344346
uiSchema={uiSchema}
345347
/>

0 commit comments

Comments
 (0)