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

Not all the results are shown! #1629

Open
imantahriri opened this issue Mar 30, 2017 · 2 comments
Open

Not all the results are shown! #1629

imantahriri opened this issue Mar 30, 2017 · 2 comments

Comments

@imantahriri
Copy link

imantahriri commented Mar 30, 2017

Hi,
I have this code in a module called "search.js":

$('.typeahead').typeahead({
hint: hint,
autoSelect: true,
highlight: highlight,
minLength: minLength
}, {
name: 'Adresser',
limit: limit,
async: true,
source: prepareSuggestions.extractAddresses(prepOptions)
});

in another module I have:

var matches = [
"Timrå Nygatan 16, Timrå",
"Örnsköldsvik Nygatan 16, Örnsköldsvik",
"Örnsköldsvik Nygatan 16, Bredbyn",
"Sollefteå Nygatan 16, Sollefteå",
"Kramfors Nygatan 16, Kramfors",
"Hudiksvall Nygatan 16, Iggesund"
];
async(matches);

but the results shown are only three of them!
What can I do to solve this?

untitled

@Frisbeetarian
Copy link

You're better off using the maintained fork
https://github.com/corejavascript/typeahead.js

@TOuhrouche
Copy link

@Frisbeetarian Is that an officially supported twitter library?

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

No branches or pull requests

3 participants