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 @@
* @returns {String}
*/
buttonText: function(options, select) {
if (this.disabledText.length > 0
&& (this.disableIfEmpty || select.prop('disabled'))
&& options.length == 0) {
if (this.disabledText.length > 0
&& (select.prop('disabled') || (options.length == 0 && this.disableIfEmpty)) {
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