Skip to content

Commit e79211b

Browse files
committed
Use explicit event handler for internal callback type
1 parent a5df52a commit e79211b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/forms/DatePicker/DatePicker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import React, {
55
FocusEvent,
66
KeyboardEvent,
77
JSX,
8+
InputEventHandler,
89
} from 'react'
910
import classnames from 'classnames'
1011

@@ -133,7 +134,7 @@ export const DatePicker = ({
133134
}
134135
}
135136

136-
const handleExternalInput: React.ComponentProps<'input'>['onInput'] = (
137+
const handleExternalInput: InputEventHandler<HTMLInputElement> = (
137138
event
138139
): void => {
139140
// Keep external & internal input values in sync

0 commit comments

Comments
 (0)