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.
2 parents e9a37c0 + 2ad2820 commit 13362e3Copy full SHA for 13362e3
js/bootstrap-combobox.js
@@ -136,12 +136,16 @@
136
})
137
.show();
138
139
+ $('.dropdown-menu').on('mousedown', $.proxy(this.scrollSafety, this));
140
+
141
this.shown = true;
142
return this;
143
}
144
145
, hide: function () {
146
this.$menu.hide();
147
+ $('.dropdown-menu').off('mousedown', $.proxy(this.scrollSafety, this));
148
+ this.$element.on('blur', $.proxy(this.blur, this));
149
this.shown = false;
150
151
@@ -254,6 +258,11 @@
254
258
255
259
256
260
261
+ , scrollSafety: function(e) {
262
+ if (e.target.tagName == 'UL') {
263
+ this.$element.off('blur');
264
+ }
265
257
266
, clearElement: function () {
267
this.$element.val('').focus();
268
0 commit comments