From a92263d75d43bcd341ef43666ffd4817366ea973 Mon Sep 17 00:00:00 2001 From: Jille van der Weerd Date: Thu, 12 Apr 2018 11:10:20 +0200 Subject: [PATCH] On cancel resets date bug When commenting out these two lines, a bug is fixed where when the datepicker cancels, it returns nothing. This is probably not the final solution but might help you track down the underlying issue. --- www/ios/DatePicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/ios/DatePicker.js b/www/ios/DatePicker.js index a09a9b2..f538f8b 100644 --- a/www/ios/DatePicker.js +++ b/www/ios/DatePicker.js @@ -117,8 +117,8 @@ DatePicker.prototype._dateSelected = function(date) { }; DatePicker.prototype._dateSelectionCanceled = function() { - if (this._callback) - this._callback(); +// if (this._callback) +// this._callback(); }; DatePicker.prototype._UIPopoverArrowDirection = {