Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'displayKey' in the example in docs #927

Closed
bitcity opened this issue Aug 2, 2014 · 1 comment
Closed

Add 'displayKey' in the example in docs #927

bitcity opened this issue Aug 2, 2014 · 1 comment

Comments

@bitcity
Copy link
Contributor

bitcity commented Aug 2, 2014

Just a minor change in docs :

I copied the bloodhound integration example and plugged in the engine described here but my search suggestions showed up as undefined (count was correct, but value was undefined). After tinkering with the examples, I found that displayKey : 'val' should have been specified in the typeahead initialization.

See this fiddle. The first box doesn't have displayKey set, hence suggestions are undefined. This is fixed in the second box by defining displayKey.

@jharding
Copy link
Contributor

Thanks for bringing this to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants