1
0
mirror of synced 2025-02-10 17:19:23 +03:00

Merge pull request #1846 from tpruvot/master

issue #1778: prevent delayed focus when the list is hidden
This commit is contained in:
Igor Vaynberg 2013-11-07 07:40:45 -08:00
commit fc4bbbb5ef

View File

@ -1992,7 +1992,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() {
if (this.opened()) {
this.search.focus(); this.search.focus();
}
}), 0); }), 0);
} }
})); }));