reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 532 forks source link

can the renderItem add the 'index' params #208

Closed eruca closed 7 years ago

eruca commented 7 years ago

I want the item render with the order number, like this 1 - Item, next 2-Item

var element = this.props.renderItem(
        item,
        index, // add this one for format output
        this.state.highlightedIndex === index,
        {cursor: 'default'}
      )
CMTegner commented 7 years ago

Hi! This is on the list of things I want to include in v2. I've already implemented the idea in an experimental branch.