Skip to content

Commit

Permalink
Update bootstrap-datepicker.js
Browse files Browse the repository at this point in the history
The click handler conflicts if a user has a broad click handler attached to eg the body.
e.stopPropagation(); does the trick here.
  • Loading branch information
RichardFrontwise committed Jul 7, 2014
1 parent 8bc254a commit cd3d9e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@

click: function(e){
e.preventDefault();
e.stopPropagation();
var target = $(e.target).closest('span, td, th'),
year, month, day;
if (target.length === 1){
Expand Down

0 comments on commit cd3d9e7

Please sign in to comment.