fix issue #3332
parent
25f3f99d1b
commit
c0048dc845
|
@ -64,11 +64,11 @@ class SearchController extends mixOf(taiga.Controller, taiga.PageMixin)
|
|||
promise.then null, @.onInitialDataError.bind(@)
|
||||
|
||||
# Search input watcher
|
||||
@scope.searchTerm = ""
|
||||
@scope.searchTerm = null
|
||||
loadSearchData = debounceLeading(100, (t) => @.loadSearchData(t))
|
||||
|
||||
bindOnce @scope, "projectId", (projectId) =>
|
||||
if !@scope.searchResults
|
||||
if !@scope.searchResults && @scope.searchTerm
|
||||
@.loadSearchData()
|
||||
|
||||
@scope.$watch "searchTerm", (term) =>
|
||||
|
|
Loading…
Reference in New Issue