Skip to content

Commit

Permalink
fixed many with useField user props
Browse files Browse the repository at this point in the history
  • Loading branch information
joepuzzo committed May 28, 2024
1 parent b0efbc7 commit 0346dd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ export function useField<UserProps, FieldValue>(
): {
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;
Expand Down

0 comments on commit 0346dd5

Please sign in to comment.