-
Notifications
You must be signed in to change notification settings - Fork 85
[BUG] #93
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededurgent
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededurgent
The react-hook-form example is no longer valid as the types of
onChangediffer.onChangein the input component uses(newValue: string) => voidinput-otp/packages/input-otp/src/input.tsx
Lines 45 to 51 in d4aced9
onChangeform react-hook-form expects(event: Event) => voidVersion of the library: 1.4.2
Expected Behavior
Either the example needs to be updated to only show use with
<Controller>oronChangeshould conform to react-hook-forms definition.