title: mdb_autocomplete drop down does not close on click event
body: <p>In certain cases, usually after values have been cached from an initial search, I cannot get the mdb_autocomplete drop down to close on a single click. I often have to double click on my selection to get it to close. I am dynamically populating the values in the drop down via an Ajax call to a service method via and controller action method that searches the active directory for the first 30 name values. No call back occurs until a user enters at least 3 values into the mdb_autocomplete selection box.  The callback and population of the drop down is working very well, but the click event following the selection of a value often will not close the dropdown.  Additionally, we are being forced to use mdb boostrap over the normal bootstrap library.  I have included the view, service, and typescript code that is being used to generate and populate the drop down.</p>
  
  <p>View:</p>
  
  <pre><code>        &lt;div class="form-group"&gt;
              &lt;label class="font-weight-bold" for="RequestorSearchInput"&gt;Requestor&lt;/label&gt;
              &lt;input type="text" id="RequestorSearchInput" name="RequestorSearchInput" class="form-control mdb-autocomplete" /&gt;
              &lt;span id="loading_data_icon"&gt;&lt;/span&gt;
          &lt;/div&gt; 
  </code></pre>
  
  <p>Service Method: </p>
  
  <pre><code>    public List&lt;string&gt; GetRequestor(string aRequestor)
      {
          IEnumerable&lt;Dictionary&lt;string, string&gt;&gt; requestorNames;
          using (ActiveDirectoryService service = new ActiveDirectoryService(&lt;LDAP Domain Name&gt;))
          {
              string[] propertiesToLoad = new string[] { "displayName" };
              //requestorNames = service.SearchByPartialUsername(aRequestor, propertiesToLoad).Take(30).Union(service.SearchBySurname(aRequestor, propertiesToLoad).Take(30));
              requestorNames = service.SearchBySurname(aRequestor, propertiesToLoad).Take(30);
          }
          return requestorNames.SelectMany(x =&gt; x.Values).Where(y =&gt; y.IndexOf(",", StringComparison.Ordinal) &gt;= 0).Distinct().ToList();
      }
  </code></pre>
  
  <p>TypeScript:</p>
  
  <pre><code>private handleRequestorSearch() {
      let options: string[] = new Array();
  
      // @ts-ignore
      let searchval = $("#RequestorSearchInput").val().length;
  
      if (searchval &gt;= 3) {
          $.ajax({
              url: main.getControllerHREF("GetRequestor", "Search"),
              method: "POST",
              data: {
                  requestor: $("#RequestorSearchInput").val()
              },
              async: false,
              dataType: "json",
              success: function (names) {
  
                  $.each(names, function () {
                      options.push(this);
                  });
  
                  // @ts-ignore
                  $("#RequestorSearchInput").mdb_autocomplete({
                      data: options
                  }).select(function () {
                      $("#RequestorSearchInput").focus;
                  });
  
              }
          });
      }
  }
  </code></pre>