react-dropdown-date
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -236,3 +236,3 @@ module.exports = | ||
'option', | ||
{ key: -1, value: '', | ||
{ key: -1, value: '-1', | ||
className: this.props.classes && this.props.classes.yearOptions ? this.props.classes.yearOptions : null | ||
@@ -322,3 +322,3 @@ }, | ||
'option', | ||
{ key: -1, value: '', | ||
{ key: -1, value: '-1', | ||
className: this.props.classes && this.props.classes.monthOptions ? this.props.classes.monthOptions : null | ||
@@ -356,3 +356,3 @@ }, | ||
'option', | ||
{ key: -1, value: '', | ||
{ key: -1, value: '-1', | ||
className: this.props.classes && this.props.classes.dayOptions ? this.props.classes.dayOptions : null | ||
@@ -507,3 +507,4 @@ }, | ||
return _this3.handleYearChange(e.target.value); | ||
} | ||
}, | ||
value: this.state.selectedYear | ||
}, | ||
@@ -524,3 +525,4 @@ this.generateYearOptions() | ||
return _this3.handleMonthChange(e.target.value); | ||
} | ||
}, | ||
value: this.state.selectedMonth | ||
}, | ||
@@ -541,3 +543,4 @@ this.generateMonthOptions() | ||
return _this3.handleDayChange(e.target.value); | ||
} | ||
}, | ||
value: this.state.selectedDay | ||
}, | ||
@@ -544,0 +547,0 @@ this.generateDayOptions() |
{ | ||
"name": "react-dropdown-date", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Highly customizable react based date picker. Select date from Day, Month and Year dropdown", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -12,5 +12,5 @@ # react-dropdown-date | ||
``` | ||
import Date from 'react-dropdown-date'; | ||
import DropdownDate from 'react-dropdown-date'; | ||
<Date | ||
<DropdownDate | ||
startDate={ // optional, if not provided 1900-01-01 is startDate | ||
@@ -17,0 +17,0 @@ '2012-02-14' // 'yyyy-mm-dd' format only |
60506
1244