From 37fa4e22fdac9da5babbdc828c178244891e160c Mon Sep 17 00:00:00 2001 From: Dominik Date: Thu, 26 May 2016 15:39:26 +0200 Subject: [PATCH] Added onFocus prop (#9426) --- react-input-calendar/react-input-calendar.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-input-calendar/react-input-calendar.d.ts b/react-input-calendar/react-input-calendar.d.ts index 5dac6aff5d..c511a557d9 100644 --- a/react-input-calendar/react-input-calendar.d.ts +++ b/react-input-calendar/react-input-calendar.d.ts @@ -50,6 +50,10 @@ declare namespace reactInputCalendar { */ onBlur?: (event: __React.SyntheticEvent, computableDate: string) => void; /** + * Set a function that will be triggered when the input field is focused. + */ + onFocus?: (event: __React.SyntheticEvent) => void; + /** * Define state when date picker would close once the user has clicked on a date. */ closeOnSelect?: boolean;