Skip to content

Commit 0a83921

Browse files
committed
Datepicker: Fixed #4917 Enter key press on popup fails if _dayOverClass td is after _currentClass td
1 parent 6230804 commit 0a83921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ $.extend(Datepicker.prototype, {
480480
case 9: $.datepicker._hideDatepicker();
481481
handled = false;
482482
break; // hide on tab out
483-
case 13: var sel = $('td.' + $.datepicker._dayOverClass +
484-
', td.' + $.datepicker._currentClass, inst.dpDiv);
483+
case 13: var sel = $('td.' + $.datepicker._dayOverClass, inst.dpDiv).
484+
add($('td.' + $.datepicker._currentClass, inst.dpDiv));
485485
if (sel[0])
486486
$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);
487487
else

0 commit comments

Comments
 (0)