Giter Site home page Giter Site logo

Comments (7)

gorakhargosh avatar gorakhargosh commented on August 26, 2024

Procedure:

  1. Type something in the text box.
  2. Suggestion dropdown shows up.
  3. Use the arrow keys to select an item and press [Return/Enter] on the keyboard.

Expected behavior:

The text box should be populated with the selected item
and a function should be called with the associated value.

Observed behavior:

The text box is not populated with the selected item.

from better-autocomplete.

betamos avatar betamos commented on August 26, 2024

That is a feature. It is up to the integrating developer to define what happens when a selection is made, through the select callback. In example.html there is a demo of where it is inserted (phone numbers).

from better-autocomplete.

gorakhargosh avatar gorakhargosh commented on August 26, 2024

Oh. Well, most people will be expecting this out-of-the-box. =)

from better-autocomplete.

betamos avatar betamos commented on August 26, 2024

That may be true. I'm leaving this issue open for a while, for time to consider it :)

from better-autocomplete.

gorakhargosh avatar gorakhargosh commented on August 26, 2024

I like the way you've written your code. Probably one of the cleanest jQuery plugin I've seen so far. =)

from better-autocomplete.

betamos avatar betamos commented on August 26, 2024

Thank you very much. I intend to make this plugin usable for as many purposes as possible.

To the issue: I think you are right, and that the default behavior should be to insert the title into the input field. I will commit this now.

from better-autocomplete.

gorakhargosh avatar gorakhargosh commented on August 26, 2024

Awesome. =)

from better-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.