We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f4724d commit 2ad2820Copy full SHA for 2ad2820
js/bootstrap-combobox.js
@@ -122,12 +122,16 @@
122
})
123
.show();
124
125
+ $('.dropdown-menu').on('mousedown', $.proxy(this.scrollSafety, this));
126
+
127
this.shown = true;
128
return this;
129
}
130
131
, hide: function () {
132
this.$menu.hide();
133
+ $('.dropdown-menu').off('mousedown', $.proxy(this.scrollSafety, this));
134
+ this.$element.on('blur', $.proxy(this.blur, this));
135
this.shown = false;
136
137
@@ -230,6 +234,11 @@
230
234
231
235
232
236
237
+ , scrollSafety: function(e) {
238
+ if (e.target.tagName == 'UL') {
239
+ this.$element.off('blur');
240
+ }
241
233
242
, clearElement: function () {
243
this.$element.val('').focus();
244
0 commit comments