sergeyt / meteor-typeahead

Autocomplete package for meteor powered by twitter typeahead.js
https://atmospherejs.com/sergeyt/typeahead
MIT License
146 stars 82 forks source link

Typeahead suggestion helper not working on Meteor 1.2.0.2 #121

Closed vladejs closed 9 years ago

vladejs commented 9 years ago

I've updated my app to meteor 1.2.0.2.

The helper that executes when an item is selected doesn't work. This is the helper in coffeescript:

selectedItem : (event, suggestion) ->
    console.log "Hi there"

and this is the input:

<input name="country"
           id="autocomplete"
           class="form-control locinput input-rel searchtag-input has-icon typeahead"
           data-source="countries" data-selected="selectedItem"
           required autofocus>

What's the problem here? i didn't touch anything either

sergeyt commented 9 years ago

@vladejs try to rename data-selected to data-select, now event names are synced with typeahead docs.

vladejs commented 9 years ago

Problem solved. Thank you very much @sergeyt.

Iam closing the issue.