diff --git a/src/DatePicker/Calendar.js b/src/DatePicker/Calendar.js
index cad37a982810c0..fab8b41b6873bd 100644
--- a/src/DatePicker/Calendar.js
+++ b/src/DatePicker/Calendar.js
@@ -354,7 +354,7 @@ class Calendar extends Component {
key={this.state.displayDate.toDateString()}
minDate={this.props.minDate}
maxDate={this.props.maxDate}
- onDayTouchTap={this.handleTouchTapDay}
+ onTouchTapDay={this.handleTouchTapDay}
ref="calendar"
selectedDate={this.state.selectedDate}
shouldDisableDate={this.props.shouldDisableDate}
@@ -367,8 +367,9 @@ class Calendar extends Component {
{this.yearSelector()}
}
- {this.props.showActionButtons &&
+ {this.props.cancelLabel && this.props.okLabel &&
-
+ {!this.props.autoOk &&
+
+ }
);
}
diff --git a/src/DatePicker/CalendarMonth.js b/src/DatePicker/CalendarMonth.js
index a1f53a9b52cd1e..fb366aea351dcf 100644
--- a/src/DatePicker/CalendarMonth.js
+++ b/src/DatePicker/CalendarMonth.js
@@ -9,7 +9,7 @@ class CalendarMonth extends Component {
firstDayOfWeek: PropTypes.number,
maxDate: PropTypes.object,
minDate: PropTypes.object,
- onDayTouchTap: PropTypes.func,
+ onTouchTapDay: PropTypes.func,
selectedDate: PropTypes.object.isRequired,
shouldDisableDate: PropTypes.func,
};
@@ -19,7 +19,7 @@ class CalendarMonth extends Component {
}
handleTouchTapDay = (event, date) => {
- if (this.props.onDayTouchTap) this.props.onDayTouchTap(event, date);
+ if (this.props.onTouchTapDay) this.props.onTouchTapDay(event, date);
};
shouldDisableDate(day) {
diff --git a/src/DatePicker/DatePicker.js b/src/DatePicker/DatePicker.js
index b8d05a54322ccd..3fd170e82ec2b8 100644
--- a/src/DatePicker/DatePicker.js
+++ b/src/DatePicker/DatePicker.js
@@ -134,12 +134,10 @@ class DatePicker extends Component {
static defaultProps = {
autoOk: false,
- cancelLabel: 'Cancel',
container: 'dialog',
disabled: false,
disableYearSelection: false,
firstDayOfWeek: 1,
- okLabel: 'OK',
style: {},
};
diff --git a/src/DatePicker/DatePickerDialog.js b/src/DatePicker/DatePickerDialog.js
index 05f04a1028b847..6504dfa9e214bb 100644
--- a/src/DatePicker/DatePickerDialog.js
+++ b/src/DatePicker/DatePickerDialog.js
@@ -92,7 +92,6 @@ class DatePickerDialog extends Component {
render() {
const {
- // autoOk, FIXME: autoOk not working
DateTimeFormat,
cancelLabel,
container,
@@ -144,6 +143,7 @@ class DatePickerDialog extends Component {
onKeyUp={this.handleWindowKeyUp}
/>