Comments (8)
This has to do with #4 and related issues, including #27. I'll try to change the behavior for single-field autocompletion when I get a chance.
from meteor-autocomplete.
Ahh yes, I see how that's connected now, and that this library wasn't set up to search a single collection. You can close this issue if you like. Appreciate it.
from meteor-autocomplete.
I'd also take a PR for anyone who wants to revamp how a single collection autocomplete is handled :D
from meteor-autocomplete.
I'd like to, though regex isn't really my strong point. I'm a front end engineer, thus why I am looking for something that autocompletes from the DB. :)
from meteor-autocomplete.
@Lucaska this library is all front end :)
from meteor-autocomplete.
It's still regexp working on database entries stuff. :)
I thought my specific issue seemed to be in this function:
https://github.com/mizzao/meteor-autocomplete/blob/master/autocomplete-client.coffee#L217
@$element.setCursorPosition val.length + 1
I removed the + 1 and it doesn't show up as a having a space, but when you move off the text input, its there when you go back.
For now I just iterated a Select item template over the volunteerName entry. Not nearly as elegant a solution as this, but it is a side project.
from meteor-autocomplete.
I don't think that line actually inserts the space; the replace
inserts the space and that line just goes there. This is the line that inserts the space: https://github.com/mizzao/meteor-autocomplete/blob/master/autocomplete-client.coffee#L223
I don't understand what your last sentence said. So you created a dropdown list instead of using autocomplete?
from meteor-autocomplete.
0.4.0 overhauls the behavior of what you're trying to do. Give it a try and see if it works for you.
from meteor-autocomplete.
Related Issues (20)
- Support multiple collections for multiple input fields, with each collection maps to an input field? HOT 1
- Show nothing when no records found.
- Multiple field search & display 2 fields in textbox of same collection. HOT 4
- Search anywhere in the string tokenless using server collection
- inserting without \n
- 'Bottom' position rendering over field HOT 2
- autoSelect :false isn't working HOT 1
- Starting Autocomplete after the n-th letter HOT 1
- autocompete not displaying HOT 1
- retrive docuemnts on spcefic condition HOT 1
- Autocomplete (server-side configuration) not working HOT 3
- React instead of Blaze? HOT 4
- Display nothing when no matches HOT 2
- How can I search multiple fields from the same collection?
- search in nested array field HOT 1
- Problem when entering a very lengthy text.
- I need to return two fields and put in two diferent inputs
- Exception in template helper: AutoComplete.prototype.filteredList@http://localhost:3000/packages/mizzao_autocomplete.js?
- Preselect or set a default value
- Broken server side subscription on Meteor 2.0 HOT 7
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 meteor-autocomplete.