Skip to content

Commit

Permalink
🐞 fix #10878 return disabled field state (#10879)
Browse files Browse the repository at this point in the history
* 🐛 bug(Controller): return disabled field state

Closes: #10878

* fix issue by not pass down disabled state

---------

Co-authored-by: Beier Luo <bluebill1049@hotmail.com>
  • Loading branch information
Moshyfawn and bluebill1049 committed Sep 4, 2023
1 parent e34e96c commit 2b1f00c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export function useController<
field: {
name,
value,
disabled,
onChange: React.useCallback(
(event) =>
_registerProps.current.onChange({
Expand Down

0 comments on commit 2b1f00c

Please sign in to comment.