Skip to content

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

@guillaumecardon

Description

@guillaumecardon

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions