mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Fixed #4474 Pressing Return (keyCode 13) overwrites manually inserted input in DatePicker
This commit is contained in:
parent
2d67c203bf
commit
c4b86dcfbe
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user