Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

getItemValue() vs renderItem() #376

Open
mellis481 opened this issue Jan 18, 2019 · 2 comments
Open

getItemValue() vs renderItem() #376

mellis481 opened this issue Jan 18, 2019 · 2 comments

Comments

@mellis481
Copy link

getItemValue() and renderItem() seem redundant. Both are used to return what is displayed for each item. Why are they both necessary?

@unformatt
Copy link

From what I can tell, renderItem returns layout/view for the autocomplete list. getItemValue returns what gets passed to onSelect.

@unformatt
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants