Skip to content

Commit 397920e

Browse files
authored
Declare property fieldContext as optional (#225)
Fix ant-design/ant-design#27534
1 parent 5418105 commit 397920e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export interface InternalFieldProps<Values = any> {
8282

8383
/** @private Pass context as prop instead of context api
8484
* since class component can not get context in constructor */
85-
fieldContext: InternalFormInstance;
85+
fieldContext?: InternalFormInstance;
8686
}
8787

8888
export interface FieldProps<Values = any>

0 commit comments

Comments
 (0)