From 75006fe527b15bb774411853de7bfdd2a586fb13 Mon Sep 17 00:00:00 2001 From: AdrianHL <16022257+AdrianHL@users.noreply.github.com> Date: Mon, 9 Jul 2018 15:47:05 +0100 Subject: [PATCH] Show the non selected text when numberDisplayed is disabled Show the non selected text when numberDisplayed is disabled --- dist/js/bootstrap-multiselect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/bootstrap-multiselect.js b/dist/js/bootstrap-multiselect.js index 2a028b77..99f70f2b 100644 --- a/dist/js/bootstrap-multiselect.js +++ b/dist/js/bootstrap-multiselect.js @@ -254,7 +254,7 @@ return this.disabledText; } - else if (options.length === 0) { + else if (this.numberDisplayed == 0 || options.length === 0) { return this.nonSelectedText; } else if (this.allSelectedText