Skip to content

Commit

Permalink
Fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik committed Feb 2, 2016
1 parent 3e2b924 commit 52e35d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/bootstrap-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
this.$group.trigger('focus');
},
click: function(event) {
var $button = $(event.target);
// Strictly event.currentTarget. Fix #19
var $button = $(event.currentTarget);

if (!$button.hasClass('active') || this.options.switchAlways) {
this.change();
Expand Down

0 comments on commit 52e35d8

Please sign in to comment.