Browse Source

Merge branch 'patch-1' of https://github.com/eymengunay/Semantic-UI into next #4010

pull/3763/merge
Jack Lukic 8 years ago
parent
commit
3d0a02d75b
1 changed files with 4 additions and 1 deletions
  1. 5
      src/definitions/modules/dropdown.js

5
src/definitions/modules/dropdown.js

@ -3619,7 +3619,10 @@ $.fn.dropdown.settings.templates = {
html = ''
;
$.each(values, function(index, option) {
html += '<div class="item" data-value="' + option[fields.value] + '">' + option[fields.name] + '</div>';
html += (option.disabled)
? '<div class="disabled item" data-value="' + option[fields.value] + '">' + option[fields.name] + '</div>'
: '<div class="item" data-value="' + option[fields.value] + '">' + option[fields.name] + '</div>'
;
});
return html;
},

Loading…
Cancel
Save