Skip to content

Commit

Permalink
Datepicker: Allow descendant elements in triggers. Fixes #8107 - Clos…
Browse files Browse the repository at this point in the history
…ing the datepicker via the provided button does not work in Chrome when the button contains other non-text elements.

(cherry picked from commit c964894)
  • Loading branch information
scottgonzalez committed Feb 8, 2012
1 parent 28fb436 commit dc12b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Expand Up @@ -845,7 +845,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();
Expand Down

0 comments on commit dc12b4d

Please sign in to comment.