Skip to content

Commit

Permalink
Clear filter after selecting token
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Apr 1, 2022
1 parent cdc0620 commit fb644da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/components/search_field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class SingleSearchFieldSuggestion extends SearchFieldSuggestion {

select(label: string): void {
dodona.search_query.query_params.updateParam(this.param, label);
dodona.search_query.query_params.updateParam("filter", undefined);
}

isSelected(label: string): boolean {
Expand All @@ -87,6 +88,7 @@ export class MultiSearchFieldSuggestion extends SearchFieldSuggestion {

select(label: string): void {
dodona.search_query.array_query_params.updateParam(this.param, [...this.selected, label]);
dodona.search_query.query_params.updateParam("filter", undefined);
}

isSelected(label: string): boolean {
Expand Down

0 comments on commit fb644da

Please sign in to comment.