[Autocomplete] Check if indexed filteredOptions is defined
This commit is contained in:
@@ -68,8 +68,10 @@ define(
|
||||
}
|
||||
|
||||
function fillInputWithIndexedOption() {
|
||||
if($scope.filteredOptions[$scope.optionIndex]) {
|
||||
$scope.ngModel[$scope.field] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||
}
|
||||
}
|
||||
|
||||
$scope.keyDown = function($event) {
|
||||
if($scope.filteredOptions) {
|
||||
|
||||
Reference in New Issue
Block a user