diff --git a/src/js/bootstrap-switch.js b/src/js/bootstrap-switch.js index 291ecc38..60745740 100644 --- a/src/js/bootstrap-switch.js +++ b/src/js/bootstrap-switch.js @@ -549,6 +549,12 @@ class BootstrapSwitch { return this.$element; } + redraw() { + this.destroy(); + this.$element.bootstrapSwitch(this.options); + return this.$element; + } + destroy() { const $form = this.$element.closest('form'); if ($form.length) {