From c4b86dcfbe022d204366a139ba8b9a40c882692e Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Sun, 26 Apr 2009 07:25:15 +0000 Subject: [PATCH] Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input in DatePicker --- ui/ui.datepicker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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), -- 2.39.5