Fix gl dropdown spec
This commit is contained in:
parent
ecb66fc31c
commit
1b27524aec
|
@ -374,7 +374,7 @@ GitLabDropdown = (function() {
|
||||||
$relatedTarget = $(e.relatedTarget);
|
$relatedTarget = $(e.relatedTarget);
|
||||||
$dropdownMenu = $relatedTarget.closest('.dropdown-menu');
|
$dropdownMenu = $relatedTarget.closest('.dropdown-menu');
|
||||||
if ($dropdownMenu.length === 0) {
|
if ($dropdownMenu.length === 0) {
|
||||||
return _this.dropdown.removeClass('open');
|
return _this.dropdown.removeClass('show');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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('.open')) {
|
if (this.dropdown.is('.show')) {
|
||||||
this.filterInput.focus();
|
this.filterInput.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue