Add focus check for gldropdown

This commit is contained in:
Clement Ho 2018-05-21 18:25:16 -05:00
parent 1b27524aec
commit 429c7f8f59
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ GitLabDropdown = (function() {
if (this.options.filterable) {
const initialScrollTop = $(window).scrollTop();
if (this.dropdown.is('.show')) {
if (this.dropdown.is('.show') && !this.filterInput.is(':focus')) {
this.filterInput.focus();
}