Skip to content

Commit 0c64a2f

Browse files
committed
Add disabled class on container for when the combobox is disabled
1 parent 5b7e14c commit 0c64a2f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

js/bootstrap-combobox.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,17 @@
5454
}
5555

5656
, disable: function() {
57-
this.$element.prop('disabled', true)
58-
this.$button.attr('disabled', true)
59-
this.disabled = true
57+
this.$element.prop('disabled', true);
58+
this.$button.attr('disabled', true);
59+
this.disabled = true;
60+
this.$container.addClass('combobox-disabled');
6061
}
6162

6263
, enable: function() {
63-
this.$element.prop('disabled', false)
64-
this.$button.attr('disabled', false)
65-
this.disabled = false
64+
this.$element.prop('disabled', false);
65+
this.$button.attr('disabled', false);
66+
this.disabled = false;
67+
this.$container.removeClass('combobox-disabled');
6668
}
6769
, parse: function () {
6870
var that = this

0 commit comments

Comments
 (0)