Fix gl dropdown spec

This commit is contained in:
Clement Ho 2018-05-21 16:44:13 -05:00
parent ecb66fc31c
commit 1b27524aec
1 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ GitLabDropdown = (function() {
$relatedTarget = $(e.relatedTarget);
$dropdownMenu = $relatedTarget.closest('.dropdown-menu');
if ($dropdownMenu.length === 0) {
return _this.dropdown.removeClass('open');
return _this.dropdown.removeClass('show');
}
}
};
@ -801,7 +801,7 @@ GitLabDropdown = (function() {
if (this.options.filterable) {
const initialScrollTop = $(window).scrollTop();
if (this.dropdown.is('.open')) {
if (this.dropdown.is('.show')) {
this.filterInput.focus();
}