@@ -452,6 +452,7 @@
})(this),
"click.bootstrapSwitch": (function(_this) {
return function(e) {
+ e.preventDefault();
_this.toggleState();
return _this.$element.trigger("focus.bootstrapSwitch");
};
@@ -342,6 +342,8 @@ do ($ = window.jQuery, window) ->
@$label.trigger "mouseup.bootstrapSwitch"
"click.bootstrapSwitch": (e) =>
+ e.preventDefault()
+
@toggleState()
@$element.trigger "focus.bootstrapSwitch"