From 54a794361477b024eb6eebdcc0437af74d6e9979 Mon Sep 17 00:00:00 2001 From: tolgahan-arikan Date: Mon, 11 Nov 2024 17:28:43 +0300 Subject: [PATCH] Make onKeyPress optional (#36) --- src/components/PasswordInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PasswordInput.tsx b/src/components/PasswordInput.tsx index db0839a..309fffd 100644 --- a/src/components/PasswordInput.tsx +++ b/src/components/PasswordInput.tsx @@ -8,8 +8,8 @@ interface TextInputWrapperProps { label: string labelLocation?: 'top' | 'left' | 'right' | 'bottom' // Optional prop for label location value: string - onKeyPress: (ev: KeyboardEvent) => void onChange: (ev: ChangeEvent) => void + onKeyPress?: (ev: KeyboardEvent) => void autoFocus?: boolean }