Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent option not working on "toggle" event. #53

Open
guillaumecardon opened this issue Sep 19, 2020 · 1 comment
Open

Silent option not working on "toggle" event. #53

guillaumecardon opened this issue Sep 19, 2020 · 1 comment

Comments

@guillaumecardon
Copy link

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)
}
@palcarazm
Copy link

Hi @guillaumecardon ,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants