Skip to content

Commit

Permalink
Merge pull request #343 from pierobot/bug-followLinkOnSelect
Browse files Browse the repository at this point in the history
Fix followLinkOnSelect bug.
  • Loading branch information
bassjobsen authored Apr 6, 2018
2 parents 067bd29 + 55b1491 commit 1b43054
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 1b43054

Please sign in to comment.