getItemValue() vs renderItem()
mellis481 opened this issue · comments
Mike Ellis commented
getItemValue()
and renderItem()
seem redundant. Both are used to return what is displayed for each item. Why are they both necessary?
Matt commented
From what I can tell, renderItem
returns layout/view for the autocomplete list. getItemValue
returns what gets passed to onSelect
.
Matt commented
getItemValue
is also used to filter the autocomplete list. This is actually causing problems for me because I want to filter on label but return an id.