Meteor-Community-Packages / Meteor-Community-Packages/meteor-autocomplete

detect autocomplete keyup event

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CoffeeScript
Stars
350
Forks
106
PR merge metrics
No merged PRs in 30d

Description

I have a textbox which I use 'enter' keyup event to submit the value. The problem is the autocomplete also use the 'enter' keyup event to select the suggestion. So when I select one suggestion from the list, the textbox catch the event and submit the value right away (which I dont want because I want to type more) .
How can I detect only the 'enter' event of the autocomplete and prevent the textbox to catch it.
Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by inspecting the package's autocomplete event-handling documentation and implementation to locate how Enter selection is exposed; done would be a documented, reproducible answer to the event-handling question.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.