From 0484e2b54db434b727e0c08e02400d5d9614dcae Mon Sep 17 00:00:00 2001 From: Simon Egersand <s.egersand@gmail.com> Date: Sat, 27 Jan 2018 00:54:20 +0100 Subject: [PATCH] Pass function to close calendar to renderInput prop --- DateTime.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/DateTime.js b/DateTime.js index 6ba9848..b0a9dad 100644 --- a/DateTime.js +++ b/DateTime.js @@ -428,7 +428,7 @@ value: this.state.inputValue, }, this.props.inputProps); if ( this.props.renderInput ) { - children = [ React.createElement('div', { key: 'i' }, this.props.renderInput( finalInputProps, this.openCalendar )) ]; + children = [ React.createElement('div', { key: 'i' }, this.props.renderInput( finalInputProps, this.openCalendar, this.closeCalendar )) ]; } else { children = [ React.createElement('input', assign({ key: 'i' }, finalInputProps ))]; } -- Gitblit v1.9.3