Commit 31e1ea69 authored by David Stutz's avatar David Stutz

Merge pull request #715 from cwalv/patch-1

only use disabledText when multiselect is disabled
parents 08c7013e 5d68e6f9
...@@ -234,9 +234,8 @@ ...@@ -234,9 +234,8 @@
* @returns {String} * @returns {String}
*/ */
buttonText: function(options, select) { buttonText: function(options, select) {
if (this.disabledText.length > 0 if (this.disabledText.length > 0
&& (this.disableIfEmpty || select.prop('disabled')) && (select.prop('disabled') || (options.length == 0 && this.disableIfEmpty)) {
&& options.length == 0) {
return this.disabledText; return this.disabledText;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment