bootstrap-switch
bootstrap-switch copied to clipboard
Events not handled
Hi,
I saw that in certain cases, the events are not handled correctly.
The bug is located here :
BootstrapSwitch.prototype._elementHandlers = function() {
return this.$label.on({
You can fix this bug by using the following code instead :
BootstrapSwitch.prototype._elementHandlers = function() {
return this.$container.on({
Regards
Line 642: insert code below
//mod
var isCurrentChecked = _this.$element.is(':checked');
if (isCurrentChecked === state)
state = !state;