How to use the downshift.resetIdCounter function in downshift

To help you get started, we’ve selected a few downshift examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github techniq / mui-downshift / src / index.js View on Github external
inputRef: PropTypes.func,
  variant: PropTypes.oneOf(['standard','filled','outlined']),

  // Menu
  getListItem: PropTypes.func,
  getListItemKey: PropTypes.func,
  showEmpty: PropTypes.bool,
  includeFooter: PropTypes.bool,
  getInfiniteLoaderProps: PropTypes.func,
  getVirtualListProps: PropTypes.func,
  menuHeight: PropTypes.number,
  menuItemCount: PropTypes.number,
};

export const stateChangeTypes = Downshift.stateChangeTypes;
export const resetIdCounter = Downshift.resetIdCounter;
export default MuiDownshift;
github wesbos / advanced-react-rerecord / frontend / components / Search.js View on Github external
function AutoComplete(props) {
  const [findItems, { loading, data }] = useLazyQuery(SEARCH_ITEMS_QUERY);
  const items = data ? data.allItems : [];
  const findItemsButChill = debounce(findItems, 350);
  resetIdCounter();
  return (
    
       (item === null ? '' : item.name)}
      >
        {({
          getInputProps,
          getItemProps,
          isOpen,
          inputValue,
          highlightedIndex,
        }) => (
          <div>
            </div>

downshift

🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.

MIT
Latest version published 4 months ago

Package Health Score

95 / 100
Full package analysis