diff --git a/ui/demos/functional/datepicker/debug.html b/ui/demos/functional/datepicker/debug.html index a73c5dc62..91dab145b 100644 --- a/ui/demos/functional/datepicker/debug.html +++ b/ui/demos/functional/datepicker/debug.html @@ -14,7 +14,7 @@ diff --git a/ui/source/ui.datepicker.js b/ui/source/ui.datepicker.js index 62199f7bb..2715c38be 100644 --- a/ui/source/ui.datepicker.js +++ b/ui/source/ui.datepicker.js @@ -254,6 +254,9 @@ $.extend(Datepicker.prototype, { Date[2] - the current dates for a range */ _getDateDatepicker: function(target) { var inst = this._getInst(target._calId); + if (inst) { + inst._setDateFromField($(target)); + } return (inst ? inst._getDate() : null); },