Skip to content

Commit db1644d

Browse files
committed
Fixing argument type for onBlur on onFocus events
1 parent f358430 commit db1644d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react-datetime.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ declare module ReactDatetime {
5454
/*
5555
Callback trigger for when the user opens the datepicker.
5656
*/
57-
onFocus?: (e) => void;
57+
onFocus?: (e : FocusEvent) => void;
5858
/*
5959
Callback trigger for when the user clicks outside of the input, simulating a regular onBlur.
6060
The callback receives the selected moment object as only parameter, if the date in the
6161
input is valid. If it isn't, the value of the input (a string) is returned.
6262
*/
63-
onBlurs?: (e) => void;
63+
onBlurs?: (e : FocusEvent) => void;
6464
/*
6565
The default view to display when the picker is shown. ('years', 'months', 'days', 'time')
6666
*/

0 commit comments

Comments
 (0)