Skip to content
Permalink
Browse files

Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manua…

…lly inserted input in DatePicker
  • Loading branch information
Keith Wood
Keith Wood committed Apr 26, 2009
1 parent 2d67c20 commit c4b86dcfbe022d204366a139ba8b9a40c882692e
Showing with 1 addition and 3 deletions.
  1. +1 −3 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),

0 comments on commit c4b86dc

Please sign in to comment.
You can’t perform that action at this time.