Revert to adding open class to dropdowns

This commit is contained in:
Annabel Dunstone Gray 2017-12-05 13:41:51 -07:00
parent 716ac26203
commit b4fb31d9dd
No known key found for this signature in database
GPG Key ID: 7C8C78A372AD7A2D
1 changed files with 2 additions and 3 deletions

View File

@ -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();