From 0346dd5e38b0603de78cc9606c26f0dab2094c7a Mon Sep 17 00:00:00 2001 From: joepuzzo Date: Tue, 28 May 2024 11:43:27 -0700 Subject: [PATCH] fixed many with useField user props --- CHANGELOG.md | 6 ++++++ index.d.ts | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5df97ecd..ccda8e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 4.60.1 ( May 28th, 2024) + +### Fixed + +- Issue with useField user props not omitting "'onChange' | 'onBlur' | 'onFocus' | 'value' | 'defaultValue' | 'required'" + ## 4.60.0 ( May 9th, 2024) ### Fixed diff --git a/index.d.ts b/index.d.ts index 37f9ad1c..7b11f5ee 100644 --- a/index.d.ts +++ b/index.d.ts @@ -370,7 +370,10 @@ export function useField( ): { fieldState: FieldState; fieldApi: FieldApi; - userProps: UserProps; + userProps: Omit< + UserProps, + 'onChange' | 'onBlur' | 'onFocus' | 'value' | 'defaultValue' | 'required' + >; informed: { onChange(event: React.SyntheticEvent): void; onBlur(event: React.SyntheticEvent): void;