src/components/autocomplete/js/autocompleteController.js
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;
  }
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;
  }
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 ; }
Determines whether the autocomplete is able to query within the current state.
@returns {boolean} true if the query can be run
Determines whether the autocomplete is able to query within the current state .