Skip to content

Commit

Permalink
Make onKeyPress optional (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgahan-arikan authored Nov 11, 2024
1 parent 989d623 commit 54a7943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ interface TextInputWrapperProps {
label: string
labelLocation?: 'top' | 'left' | 'right' | 'bottom' // Optional prop for label location
value: string
onKeyPress: (ev: KeyboardEvent<HTMLInputElement>) => void
onChange: (ev: ChangeEvent<HTMLInputElement>) => void
onKeyPress?: (ev: KeyboardEvent<HTMLInputElement>) => void
autoFocus?: boolean
}

Expand Down

0 comments on commit 54a7943

Please sign in to comment.