code: function isSearchable() {
      if (ctrl.loading && !hasMatches()) {
        // No query when query is in progress.
        return false;
      } else if (hasSelection()) {
        // No query if there is already a selection
        return false;
      }
      else if (!hasFocus) {
        // No query if the input does not have focus
        return false;
      }
      return true;
    }
docs: Determines whether the autocomplete is able to query within the current state.
  @returns {boolean} true if the query can be run