From 49d214603b5ff2d948f56ccb50984d240a36f552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Thu, 10 May 2018 17:09:56 +0200 Subject: [PATCH] Fix wrong scope access --- public/directives/wz-search-bar/wz-search-bar.html | 4 ++-- public/directives/wz-search-bar/wz-search-bar.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/directives/wz-search-bar/wz-search-bar.html b/public/directives/wz-search-bar/wz-search-bar.html index c80c276ba..62cbc0787 100644 --- a/public/directives/wz-search-bar/wz-search-bar.html +++ b/public/directives/wz-search-bar/wz-search-bar.html @@ -1,6 +1,6 @@
- -
diff --git a/public/directives/wz-search-bar/wz-search-bar.js b/public/directives/wz-search-bar/wz-search-bar.js index cd20dcea4..2a51e5c78 100644 --- a/public/directives/wz-search-bar/wz-search-bar.js +++ b/public/directives/wz-search-bar/wz-search-bar.js @@ -26,8 +26,8 @@ app.directive('wzSearchBar', function() { isdisabled: '=isdisabled' }, link: function(scope, ele, attrs) { - scope.applyDelayAndFilter = () => { - setTimeout(() => scope.data.addFilter('search', scope.term),200) + scope.applyDelayAndFilter = searchTerm => { + setTimeout(() => scope.data.addFilter('search', searchTerm),200) } }, template: searchBarTemplate