Simon Egersand
2016-09-10 06b0b00d640056656a35f5ec546c6ec5ecd0fdf5
Merge pull request #138 from skyflyer/master

Set argument type for onBlur on onFocus events
1 files modified
4 ■■■■ changed files
react-datetime.d.ts 4 ●●●● patch | view | raw | blame | history
react-datetime.d.ts
@@ -54,13 +54,13 @@
    /*
     Callback trigger for when the user opens the datepicker.
     */
    onFocus?: (e) => void;
    onFocus?: (e : FocusEvent) => void;
    /*
     Callback trigger for when the user clicks outside of the input, simulating a regular onBlur.
     The callback receives the selected moment object as only parameter, if the date in the
     input is valid. If it isn't, the value of the input (a string) is returned.
     */
    onBlurs?: (e) => void;
    onBlurs?: (e : FocusEvent) => void;
    /*
     The default view to display when the picker is shown. ('years', 'months', 'days', 'time')
     */