mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker - Fixed #4949 - Double click on next/previous button closes the datepicker
This commit is contained in:
parent
2b31eafb61
commit
ef0e88c8a1
3
ui/jquery.ui.datepicker.js
vendored
3
ui/jquery.ui.datepicker.js
vendored
@ -764,7 +764,8 @@ $.extend(Datepicker.prototype, {
|
||||
if (!$.datepicker._curInst)
|
||||
return;
|
||||
var $target = $(event.target);
|
||||
if (($target.parents('#' + $.datepicker._mainDivId).length == 0) &&
|
||||
if ($target[0].id != $.datepicker._mainDivId &&
|
||||
$target.parents('#' + $.datepicker._mainDivId).length == 0 &&
|
||||
!$target.hasClass($.datepicker.markerClassName) &&
|
||||
!$target.hasClass($.datepicker._triggerClass) &&
|
||||
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
|
||||
|
Loading…
Reference in New Issue
Block a user