From cf07026e1685bebe7a7e8545ea603146e7408a28 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Sun, 2 Oct 2016 19:04:29 +0200 Subject: [PATCH] fix issue #4585 - fix search in discover home page --- .../discover-search-bar/discover-search-bar.directive.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/modules/discover/components/discover-search-bar/discover-search-bar.directive.coffee b/app/modules/discover/components/discover-search-bar/discover-search-bar.directive.coffee index 9dab0fbc..ee588926 100644 --- a/app/modules/discover/components/discover-search-bar/discover-search-bar.directive.coffee +++ b/app/modules/discover/components/discover-search-bar/discover-search-bar.directive.coffee @@ -26,10 +26,13 @@ DiscoverSearchBarDirective = () -> templateUrl: 'discover/components/discover-search-bar/discover-search-bar.html', bindToController: true, scope: { - q: "=" + q: "=", filter: "=", onChange: "&" }, + compile: (element, attrs) -> + if !attrs.q + attrs.q = '' link: link }