Comments (2)
Hello @SneakyGerald , Thank you for reporting this. Since typeahead is fully controlled by the trie data structure, it would be impossible to reorder the suggestions as per the order of response returned by your backend (which could also return suggestions that do not contain the input query).
In the current version, its not possible but there is a PR in progress by bryan-gilbert who wants something similar and I think if we let users use their own custom data source, then they could order suggestions the way they want to. However, this would bypass the power of the trie data-structure and the suggestions and their ordering will be completely dependant on whatever the custom-source returns.
I'm gonna put it on a priority for the next release! (Although, this is not a bug, but a feature request)
Thanks!
from typeahead-standalone.
I see your point, thank you! I will check that PR.
from typeahead-standalone.
Related Issues (18)
- `typeahead` is not namespaced HOT 2
- Exact match with start query with not working HOT 2
- Regular expression input is not escaped when pressing backspace HOT 1
- Events attached to the input element are removed HOT 2
- Moving instead of cloning changes order of elements in parent element HOT 1
- Arrow key does not always select an item from the list. HOT 1
- Display callback is called for every item in the suggestion list instead of only once HOT 3
- onSubmit option, conflict issue when content is filled using mouse HOT 5
- mouse hover and keyboard select design conflict HOT 2
- With hint: false, a tt-hint input box is still generated HOT 3
- using with webpack 4.46.0 HOT 5
- Not displaying suggestions within Bootstrap offcanvas on Firefox HOT 5
- Generated HTML is not valid HOT 3
- Conflict issue on submitting data on Firefox Mobile devices HOT 11
- Typeahead import with Vite fails in production mode HOT 1
- Native Input Event Not Being Triggered HOT 4
- Error when using vite in production HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typeahead-standalone.