From: Keith Wood Date: Sun, 26 Apr 2009 07:25:15 +0000 (+0000) Subject: Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted... X-Git-Tag: 1.8a1~118 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4b86dcfbe022d204366a139ba8b9a40c882692e;p=jquery-ui.git Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input in DatePicker --- diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index b6178d703..6cfa4f847 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -513,11 +513,9 @@ $.extend(Datepicker.prototype, { } }, - /* Synchronise manual entry and alternate field. */ + /* Synchronise manual entry and field/alternate field. */ _doKeyUp: function(event) { var inst = $.datepicker._getInst(event.target); - if (!$.datepicker._get(inst, 'altField')) - return true; try { var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'), (inst.input ? inst.input.val() : null),