Browse Source

Merge pull request #2983 from maturano/2981_preserve_disabled

[dropdown] Preserve initial disabled state
pull/3015/head
Jack Lukic 9 years ago
parent
commit
4d95af9418
1 changed files with 4 additions and 0 deletions
  1. 4
      src/definitions/modules/dropdown.js

4
src/definitions/modules/dropdown.js

@ -321,6 +321,10 @@ $.fn.dropdown = function(parameters) {
if($input.is('[multiple]')) {
module.set.multiple();
}
if ($input.prop('disabled')) {
module.debug('Disabling dropdown')
$module.addClass(className.disabled)
}
$input
.removeAttr('class')
.detach()

Loading…
Cancel
Save