title: Typeahead Bloodhound don't close the autocomplete on click
body: <p>I have a problem that I can't solve, when I click on one of the a tags (js-follow class), a function is triggered to follow / unfollow a user, however the div that contains the auto complete suggestions closes at the slightest click, and I can't keep it open. Do you have a solution to prevent it from closing on click, while executing my function ? Thank you so much !</p>
  <p>Here is my code :</p>
  <pre><code>$(document).ready(function () {
    var datas = new Bloodhound({
      datumTokenizer: Bloodhound.tokenizers.whitespace,
      queryTokenizer: Bloodhound.tokenizers.whitespace,
      remote: {
        url: &quot;&quot;,
        wildcard: &quot;&quot;,
        filter: function (datas) {
        },
      },
    });
  
    datas.initialize();
    $(&quot;#tags&quot;).typeahead(
      { hint: false },
      {
        name: &quot;datas&quot;,
        source: datas.ttAdapter(),
        display: &quot;item&quot;,
        templates: {
          suggestion: function (item) {
            return (
              `&lt;ul&gt;&lt;/ul&gt;`)
            );
          },
        },
      }
    );
  });
  </code></pre>