From 28b068ed33ae8c7107fbfc3daffe027814654997 Mon Sep 17 00:00:00 2001 From: jiimka Date: Wed, 6 Feb 2019 13:18:07 +0200 Subject: [PATCH] Allow customizing CollapsibleOptGroups caret icon --- dist/js/bootstrap-multiselect.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/js/bootstrap-multiselect.js b/dist/js/bootstrap-multiselect.js index 2a028b77..519119fa 100644 --- a/dist/js/bootstrap-multiselect.js +++ b/dist/js/bootstrap-multiselect.js @@ -827,11 +827,13 @@ if (this.options.enableCollapsibleOptGroups && this.options.multiple) { $("li.multiselect-group .caret-container", this.$ul).on("click", $.proxy(function(event) { + var $target = $(event.target); var $li = $(event.target).closest('li'); var $inputs = $li.nextUntil("li.multiselect-group") .not('.multiselect-filter-hidden'); var visible = true; + $target.toggleClass('expanded'); $inputs.each(function() { visible = visible && !$(this).hasClass('multiselect-collapsible-hidden'); });