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

Add object to collection if no match

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
350
Forks
106
PR merge metrics
No merged PRs in 30d

Description

I would like to add the matched object to my collection if it is not found in the current selection, but I have found that when nothing is found the `autocompleteselect` function doesn't fire.

`"autocompleteselect input": function(event, template, doc) {
console.log(doc);
}`

I have tried using the noMatchTemplate to no success - has anyone had any luck doing this?

Contributor guide

Open the contributing guide

Research direction

Start by tracing the autocompleteselect event and noMatchTemplate handling described in the issue. Determine how a selection with no current match should be represented, then verify that the object can be added to the collection and that the relevant event or template behavior works.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.