Skip to content
Permalink
Browse files

Datepicker: Allow descendant elements in triggers. Fixes #8107 - Clos…

…ing the datepicker via the provided button does not work in Chrome when the button contains other non-text elements.
  • Loading branch information
scottgonzalez committed Feb 8, 2012
1 parent a3abb3b commit c964894b9b75dc7df62660725967a1f7a526a3ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.datepicker.js
@@ -849,7 +849,7 @@ $.extend(Datepicker.prototype, {
if ( ( ( $target[0].id != $.datepicker._mainDivId &&
$target.parents('#' + $.datepicker._mainDivId).length == 0 &&
!$target.hasClass($.datepicker.markerClassName) &&
!$target.hasClass($.datepicker._triggerClass) &&
!$target.closest("." + $.datepicker._triggerClass).length &&
$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != inst ) )
$.datepicker._hideDatepicker();

0 comments on commit c964894

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