Add focus check for gldropdown
This commit is contained in:
parent
1b27524aec
commit
429c7f8f59
|
@ -801,7 +801,7 @@ GitLabDropdown = (function() {
|
||||||
if (this.options.filterable) {
|
if (this.options.filterable) {
|
||||||
const initialScrollTop = $(window).scrollTop();
|
const initialScrollTop = $(window).scrollTop();
|
||||||
|
|
||||||
if (this.dropdown.is('.show')) {
|
if (this.dropdown.is('.show') && !this.filterInput.is(':focus')) {
|
||||||
this.filterInput.focus();
|
this.filterInput.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue