Commit b4fb31d9 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Revert to adding open class to dropdowns

parent 716ac262
...@@ -281,8 +281,8 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '. ...@@ -281,8 +281,8 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
// Avoid falsy value to be returned // Avoid falsy value to be returned
onSearchInputClick(e) { onSearchInputClick(e) {
$('.dropdown.open .dropdown-toggle').dropdown('toggle'); $('.dropdown').removeClass('open');
this.dropdown.dropdown('toggle'); this.dropdown.addClass('open');
return e.stopImmediatePropagation(); return e.stopImmediatePropagation();
} }
...@@ -307,7 +307,6 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '. ...@@ -307,7 +307,6 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
onSearchInputBlur(e) { onSearchInputBlur(e) {
this.isFocused = false; this.isFocused = false;
this.wrap.removeClass('search-active'); this.wrap.removeClass('search-active');
$('.search-input-wrap').removeClass('open');
// If input is blank then restore state // If input is blank then restore state
if (this.searchInput.val() === '') { if (this.searchInput.val() === '') {
return this.restoreOriginalState(); return this.restoreOriginalState();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment