mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Fixed #4917 Enter key press on popup fails if _dayOverClass td is after _currentClass td
This commit is contained in:
parent
6230804514
commit
0a8392186b
4
ui/jquery.ui.datepicker.js
vendored
4
ui/jquery.ui.datepicker.js
vendored
@ -480,8 +480,8 @@ $.extend(Datepicker.prototype, {
|
||||
case 9: $.datepicker._hideDatepicker();
|
||||
handled = false;
|
||||
break; // hide on tab out
|
||||
case 13: var sel = $('td.' + $.datepicker._dayOverClass +
|
||||
', td.' + $.datepicker._currentClass, inst.dpDiv);
|
||||
case 13: var sel = $('td.' + $.datepicker._dayOverClass, inst.dpDiv).
|
||||
add($('td.' + $.datepicker._currentClass, inst.dpDiv));
|
||||
if (sel[0])
|
||||
$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user