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

resultList 'data' does not contain 'match' per the docs #163

Closed
jwendel opened this issue Dec 26, 2020 · 1 comment
Closed

resultList 'data' does not contain 'match' per the docs #163

jwendel opened this issue Dec 26, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jwendel
Copy link

jwendel commented Dec 26, 2020

From the documentation: https://tarekraafat.github.io/autoComplete.js/#/?id=api-configuration, the resultItem has the line:

1- content:
- Function (data, source) => { ... }
- data.match has to be used for Highlighted result

But looking at the latest code that ends up calling the resultItem function, I see: https://github.com/TarekRaafat/autoComplete.js/blob/master/src/components/Item.js#L16-L17
It looks like resultItem is only being passed item.value, when it really should be passed item.

@jwendel jwendel added the bug Something isn't working label Dec 26, 2020
@TarekRaafat
Copy link
Owner

Hello @jwendel,

Good catch!

You're totally correct thanks.
Here is the fix v8.2

Have a nice day, cheers! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants