auto-select the first result in the search
This commit is contained in:
parent
6173868360
commit
b1cf180ab0
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ angular.module('quay').directive('headerBar', function () {
|
|||
$scope.searchResultState = {
|
||||
'state': resp.results.length ? 'results' : 'no-results',
|
||||
'results': resp.results,
|
||||
'current': -1
|
||||
'current': resp.results.length ? 0 : -1
|
||||
};
|
||||
}, function(resp) {
|
||||
$scope.searchResultState = null;
|
||||
|
|
Reference in a new issue