Skip to content

Commit

Permalink
Re-add clearSearch js function
Browse files Browse the repository at this point in the history
The `clearSearch` function was previously removed, causing search
clearing issues.
This commit re-introduces the function, restoring its functionality.
  • Loading branch information
rainerdema committed Oct 23, 2023
1 parent 968f2cc commit 4c51076
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/app/components/solidus_admin/ui/table/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export default class extends Controller {
this.searchFormTarget.requestSubmit()
}

clearSearch() {
this.searchFieldTarget.value = ''
this.search()
}

cancelSearch() {
this.clearSearch()

Expand Down

0 comments on commit 4c51076

Please sign in to comment.