1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Check if search should be focused when the dropdown is activated

This commit is contained in:
Lee Boynton 2014-03-28 14:56:45 +00:00
parent ad21d01693
commit ed0bae39c9

View File

@ -2144,7 +2144,11 @@ the specific language governing permissions and limitations under the Apache Lic
killEvent(e);
}));
dropdown.on("mousedown touchstart", this.bind(function() { this.search.focus(); }));
dropdown.on("mousedown touchstart", this.bind(function() {
if (this.opts.shouldFocusInput(this)) {
this.search.focus();
}
}));
selection.on("focus", this.bind(function(e) {
killEvent(e);