-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Typeahead remote not rendering all datums in suggestion list #442
Comments
As suggested in the Issue #215 , I added the attribute Modify your typeahead.js this.remote = o.remote;
this.itemHash = {};
this.adjacencyList = {};
this.storage = o.name ? new PersistentStorage(o.name) : null;
--> this.allowDuplicates = o.allowDuplicates || true;
} ... var item = that._transformDatum(datum), isDuplicate;
--> isDuplicate = that.allowDuplicates ? false : utils.some(suggestions, function(suggestion) {
return item.value === suggestion.value;
}); |
Thank you! Was of help. |
Note that it's a modified version of release 0.9.3 see twitter/typeahead.js#442 I had to keep duplicates.
This issue still exists, http://canalcasting.com/sipc/team.php?search=l# the main section only works with "ev" one result only. But on the network there are more than one result |
Note that it's a modified version of release 0.9.3 see twitter/typeahead.js#442 I had to keep duplicates.
This issue is too similar with Issue #416 - Issue #299
I used the
"remote"
property to set the datasource of suggestions.The server returns a stringified json, so I used the
"filter"
function to parse the response:We have 3 items but only 2 datums were rendered:
Why this behaviour? How can I get rendered all items?
Your help will be appreciated.
My javascript code looks like this:
I think that #215 deals with the issue.
The text was updated successfully, but these errors were encountered: