diff --git a/admin/app/components/solidus_admin/ui/table/component.js b/admin/app/components/solidus_admin/ui/table/component.js index 6a517b13972..0c925621f85 100644 --- a/admin/app/components/solidus_admin/ui/table/component.js +++ b/admin/app/components/solidus_admin/ui/table/component.js @@ -45,6 +45,11 @@ export default class extends Controller { this.searchFormTarget.requestSubmit() } + clearSearch() { + this.searchFieldTarget.value = '' + this.search() + } + cancelSearch() { this.clearSearch()