Merge pull request #6722 from opf/fix/28584/query-toggle

[28584] Fix query toggle hiding categories

[ci skip]
pull/6726/head
Oliver Günther 6 years ago committed by GitHub
commit 4498cf3cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts

@ -418,7 +418,10 @@ export class WorkPackageQuerySelectDropdownComponent implements OnInit, OnDestro
}
private expandCollapseCategory(category:string) {
jQuery(`[data-category="${category}"]`).toggleClass('-hidden');
jQuery(`[data-category="${category}"]`)
// Don't hide the categories themselves (Regression #28584)
.not('.ui-autocomplete--category')
.toggleClass('-hidden');
jQuery(`.wp-query-menu--category-icon[data-category="${category}"]`).toggleClass('-collapsed');
}

Loading…
Cancel
Save