This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Description
Here is the root of the problem:
|
render?: (props: { |
|
onChange: (...event: any[]) => void; |
|
onBlur: () => void; |
|
value: DeepPathValue<TFieldValues, TFieldName>; |
|
}) => React.ReactElement; |
Expected behavior:
render function argument contains name ref declaration
Current behavior:
render function argument does not contain ref and name declaration
Probably solution should look like this:
render?: (props: {
onChange: (...event: any[]) => void;
onBlur: () => void;
value: DeepPathValue<TFieldValues, TFieldName>;
name: TFieldName;
ref: React.MutableRefObject<TAs>;
}) => React.ReactElement;