From 4ce53db0aa314db95878a88d7a1e3a38517c6cf1 Mon Sep 17 00:00:00 2001 From: Lukas Weiss Date: Thu, 21 Mar 2019 15:22:36 +0100 Subject: [PATCH] Build reset button on rebuild --- dist/js/bootstrap-multiselect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/js/bootstrap-multiselect.js b/dist/js/bootstrap-multiselect.js index 2a028b77..46040380 100644 --- a/dist/js/bootstrap-multiselect.js +++ b/dist/js/bootstrap-multiselect.js @@ -739,7 +739,7 @@ } var index = $items.index($items.filter(':focus')); - + // Navigation up. if (event.keyCode === 38 && index > 0) { index--; @@ -1472,6 +1472,7 @@ // Important to distinguish between radios and checkboxes. this.options.multiple = this.$select.attr('multiple') === "multiple"; + this.buildReset(); this.buildSelectAll(); this.buildDropdownOptions(); this.buildFilter();