diff options
author | Keith Wood <kbwood.au@gmail.com> | 2009-04-26 07:25:15 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2009-04-26 07:25:15 +0000 |
commit | c4b86dcfbe022d204366a139ba8b9a40c882692e (patch) | |
tree | 36a4405cf5568b55bfe02cf92661c3693e9a2f25 /ui | |
parent | 2d67c203bf8a1be4adeec43118c29af5d5e32b5d (diff) | |
download | jquery-ui-c4b86dcfbe022d204366a139ba8b9a40c882692e.tar.gz jquery-ui-c4b86dcfbe022d204366a139ba8b9a40c882692e.zip |
Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input in DatePicker
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.datepicker.js | 4 |
1 files changed, 1 insertions, 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), |