Code Monkey home page Code Monkey logo

Comments (8)

mizzao avatar mizzao commented on May 22, 2024

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.

lallmon avatar lallmon commented on May 22, 2024

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.

mizzao avatar mizzao commented on May 22, 2024

I'd also take a PR for anyone who wants to revamp how a single collection autocomplete is handled :D

from meteor-autocomplete.

lallmon avatar lallmon commented on May 22, 2024

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.

mizzao avatar mizzao commented on May 22, 2024

@Lucaska this library is all front end :)

from meteor-autocomplete.

lallmon avatar lallmon commented on May 22, 2024

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.

mizzao avatar mizzao commented on May 22, 2024

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.

mizzao avatar mizzao commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.