Skip to content

Commit

Permalink
Merge pull request #122 from drhops/patch-1
Browse files Browse the repository at this point in the history
fix(datepicker): Fix onCloseModal for android
  • Loading branch information
feyy authored May 15, 2017
2 parents 35150ed + 555903d commit ba55c06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ class DatePicker extends Component {
date: new Date(year, month, day)
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand All @@ -180,6 +182,8 @@ class DatePicker extends Component {
date: Moment().hour(hour).minute(minute).toDate()
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand All @@ -195,6 +199,8 @@ class DatePicker extends Component {
is24Hour: is24Hour,
mode: androidMode
}).then(this.onDatetimeTimePicked.bind(this, year, month, day));
} else {
this.onPressCancel();
}
}

Expand All @@ -204,6 +210,8 @@ class DatePicker extends Component {
date: new Date(year, month, day, hour, minute)
});
this.datePicked();
} else {
this.onPressCancel();
}
}

Expand Down

0 comments on commit ba55c06

Please sign in to comment.