From 9f1da07f4274d20e72587d793f70c0235f8a90e7 Mon Sep 17 00:00:00 2001 From: Alireza Kasaaian Date: Tue, 24 Apr 2018 19:46:59 +0430 Subject: [PATCH] DatePicker input id bugFixed --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index afe9436..4d31490 100644 --- a/src/index.js +++ b/src/index.js @@ -82,11 +82,11 @@ class JDatePicker extends React.Component { } render() { let {openPicker, daysCount, selectedDay, currentMonth, selectedYear, selectedMonthFirstDay, inputValue} = this.state; - let {idStart, placeholder, disableFromUnix, customClass, containerClass, inputTextAlign} = this.props; + let {id, placeholder, disableFromUnix, customClass, containerClass, inputTextAlign} = this.props; let inputAlign = !!inputTextAlign && typeof inputTextAlign != "undefined" ? inputTextAlign :"right"; return (
- {this.setState({openPicker: !openPicker})}} /> + {this.setState({openPicker: !openPicker})}} /> {openPicker &&