Skip to content

Commit

Permalink
Fix followLinkOnSelect bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobot committed Feb 27, 2018
1 parent 067bd29 commit 55b1491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bootstrap3-typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
i.find(that.options.itemContentSelector || that.theme.itemContentSelector)
.addBack(that.options.itemContentSelector || that.theme.itemContentSelector)
.html(that.highlighter(text, item));
if(this.followLinkOnSelect) {
if(that.options.followLinkOnSelect) {
i.find('a').attr('href', self.itemLink(item));
}
i.find('a').attr('title', self.itemTitle(item));
Expand Down
Loading

0 comments on commit 55b1491

Please sign in to comment.