diff --git a/components/form/hooks/useFormItemStatus.ts b/components/form/hooks/useFormItemStatus.ts index e05dc3270e..9c66245003 100644 --- a/components/form/hooks/useFormItemStatus.ts +++ b/components/form/hooks/useFormItemStatus.ts @@ -19,4 +19,7 @@ const useFormItemStatus: UseFormItemStatus = () => { return { status }; }; +// Only used for compatible package. Not promise this will work on future version. +(useFormItemStatus as any).Context = FormItemInputContext; + export default useFormItemStatus;