Revert to adding open class to dropdowns

上级 716ac262
......@@ -281,8 +281,8 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
// Avoid falsy value to be returned
onSearchInputClick(e) {
$('.dropdown.open .dropdown-toggle').dropdown('toggle');
this.dropdown.dropdown('toggle');
$('.dropdown').removeClass('open');
this.dropdown.addClass('open');
return e.stopImmediatePropagation();
}
......@@ -307,7 +307,6 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
onSearchInputBlur(e) {
this.isFocused = false;
this.wrap.removeClass('search-active');
$('.search-input-wrap').removeClass('open');
// If input is blank then restore state
if (this.searchInput.val() === '') {
return this.restoreOriginalState();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册