Skip to content

Commit

Permalink
Fix : Advanced Search: although the topic/search was cleared the sear…
Browse files Browse the repository at this point in the history
…ch terms remain marked [NHUB-299] (#414)

Fix : Advanced Search: although the topic/search was cleared the search terms remain marked
  • Loading branch information
devketanpro authored Jun 23, 2023
1 parent 00dee73 commit c0faea6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/search/components/AdvancedSearchPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ function AdvancedSearchPanelComponent({
<div className="advanced-search__footer">
<button
className="nh-button nh-button--secondary"
onClick={clearParams}
onClick={() => {
clearParams();
toggleAdvancedSearchPanel();
fetchItems();
}}
>
{gettext('Clear all')}
</button>
Expand Down

0 comments on commit c0faea6

Please sign in to comment.