Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Merge ae3009a into 6d97741
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Renskers committed May 6, 2014
2 parents 6d97741 + ae3009a commit 5ab6ff4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/auto-complete.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ tagsInput.directive('autoComplete', function($document, $timeout, $sce, tagsInpu

suggestionList = new SuggestionList(scope.source, options);

var displayProperty = attrs.displayProperty || options.tagsInput.displayProperty;
getItemText = function(item) {
return item[options.tagsInput.displayProperty];
return item[displayProperty];
};

scope.suggestionList = suggestionList;
Expand Down Expand Up @@ -233,4 +234,4 @@ tagsInput.directive('autoComplete', function($document, $timeout, $sce, tagsInpu
});
}
};
});
});

0 comments on commit 5ab6ff4

Please sign in to comment.