1
0
mirror of synced 2024-11-23 05:26:10 +03:00

issue #1778: prevent delayed focus when the list is hidden

This reset the focus color when the TAB key is pressed.
This commit is contained in:
Tanguy Pruvot 2013-10-28 11:35:17 +01:00
parent cb7aefaeda
commit b757fb987d

View File

@ -1973,7 +1973,9 @@ the specific language governing permissions and limitations under the Apache Lic
// without this the search field loses focus which is annoying // without this the search field loses focus which is annoying
if (document.activeElement === this.body().get(0)) { if (document.activeElement === this.body().get(0)) {
window.setTimeout(this.bind(function() { window.setTimeout(this.bind(function() {
this.search.focus(); if (this.opened()) {
this.search.focus();
}
}), 0); }), 0);
} }
})); }));