Skip to content

Commit 6e58a65

Browse files
committedSep 20, 2022
type(Form): fix children type error.
1 parent 230bc9a commit 6e58a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/react-form/src/Form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface FormState {
2525

2626
export interface FormFieldsProps<T> extends Omit<FormItemProps<T>, 'children'> {
2727
name?: string;
28-
children?: (handle: FormChildrenProps) => JSX.Element;
28+
children?: ((handle: FormChildrenProps) => JSX.Element) | JSX.Element;
2929
help?: React.ReactNode;
3030
labelFor?: string;
3131
inline?: boolean;

0 commit comments

Comments
 (0)
Please sign in to comment.