fix: Course search pill not cleared when text deleted. (#37709)
* fix: Course search pill not cleared when text deleted * chore: fix spacing Co-authored-by: Feanil Patel <feanil@axim.org> --------- Co-authored-by: Feanil Patel <feanil@axim.org>
This commit is contained in:
@@ -30,8 +30,11 @@
|
||||
}
|
||||
listing = new CoursesListing({model: courseListingModel});
|
||||
|
||||
dispatcher.listenTo(form, 'search', function(query) {
|
||||
dispatcher.listenTo(form, "search", function (query) {
|
||||
form.showLoadingIndicator();
|
||||
if (!query || query.trim() === "") {
|
||||
filters.remove("search_query");
|
||||
}
|
||||
search.performSearch(query, filters.getTerms());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user