From c77d7ee2da94526535e5a4a803bec24afe10941c Mon Sep 17 00:00:00 2001
From: Chris Hynes <chris@programcsharp.com>
Date: Tue, 16 Apr 2013 18:22:35 -0700
Subject: [PATCH] Close dropdown on single select

---
 js/bootstrap-multiselect.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/js/bootstrap-multiselect.js b/js/bootstrap-multiselect.js
index 30c4436..4ec3f09 100644
--- a/js/bootstrap-multiselect.js
+++ b/js/bootstrap-multiselect.js
@@ -204,6 +204,9 @@
 
 					if (!this.options.multiple)	{
 						$optionsNotThis.prop("checked", false).change();
+
+						// It's a single selection, so close.
+						$(this.$container).find(".multiselect.dropdown-toggle").click();
 					}
 
 					if (this.options.selectedClass == "active") {
-- 
2.22.0