diff --git a/packages/fractal/src/components/InputPhone/InputPhone.types.ts b/packages/fractal/src/components/InputPhone/InputPhone.types.ts index 53b581641..9f1434f0c 100644 --- a/packages/fractal/src/components/InputPhone/InputPhone.types.ts +++ b/packages/fractal/src/components/InputPhone/InputPhone.types.ts @@ -75,10 +75,9 @@ export interface InputPhoneProps /** Event handler called when the phone value is changed. */ onChange?: (newPhoneNumber: PhoneNumber, isValid?: boolean) => void /** Event handler when a key is pressed down in one of the fields. */ - onKeyDown: (event: KeyboardEvent) => void - + onKeyDown?: (event: KeyboardEvent) => void /** Event handler when a key is released in one of the fields. */ - onKeyUp: (event: KeyboardEvent) => void + onKeyUp?: (event: KeyboardEvent) => void /** * A string to display when the text input is empty. *