bootstrap4-toggle icon indicating copy to clipboard operation
bootstrap4-toggle copied to clipboard

Silent option not working on "toggle" event.

Open guillaumecardon opened this issue 4 years ago • 1 comments

Little issue in the code

Toggle.prototype.toggle = function () {
    if (this.$element.prop('checked')) this.off()
    else this.on()
}

must be

Toggle.prototype.toggle = function (silent) {
    if (this.$element.prop('checked')) this.off(silent)
    else this.on(silent)
}

guillaumecardon avatar Sep 19 '20 13:09 guillaumecardon

Hi @guillaumecardon ,

I've released a new version for bootstrap 4 and bootstrap 5 in palcarazm/bootstrap5-toggle that support toggle silence method.

palcarazm avatar Aug 01 '22 09:08 palcarazm