Skip to content

Commit

Permalink
Merge pull request najlepsiwebdesigner#43 from dsandstrom/fix-close-b…
Browse files Browse the repository at this point in the history
…utton

Added ability to click close button icon to close datepicker
  • Loading branch information
najlepsiwebdesigner committed May 24, 2014
2 parents 6a95939 + 88f6cd5 commit bdec06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/js/foundation-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
e.stopPropagation();
e.preventDefault();

if ($(e.target).hasClass('datepicker-close')){
if ($(e.target).hasClass('datepicker-close') || $(e.target).parent().hasClass('datepicker-close')){
this.hide();
}

Expand Down

0 comments on commit bdec06c

Please sign in to comment.