code: function _selectItem(autocomplete) {
      var item = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  
      if (item === false && !this.isCustomValueAllowed(autocomplete)) {
        // custom input not allowed, restore to value before input was focused
        this.restoreState(autocomplete);
      } else {
        this._updateInputValues(autocomplete, item);
      }
  
      this.close(autocomplete);
    }
docs: If item = false, tries to select a custom value;
  If custom value not allowed restore initial value (previously selected item or input value attribute otherwise)
  
  @param {HTMLElement} autocomplete
  @param {HTMLElement|false} item
  @private