Skip to content
Snippets Groups Projects
Commit 1b27524a authored by Clement Ho's avatar Clement Ho
Browse files

Fix gl dropdown spec

parent ecb66fc3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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');
}
}
};
Loading
Loading
@@ -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();
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment