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

Exception at index.js:121 -- missing source #85

Closed pmwisdom closed 9 years ago

pmwisdom commented 9 years ago

Getting this on Meteor.typeahead.inject. Heres my code. Any Ideas?

Template.extrasTypeAhead.existingExtras = function() {
    Extras.find().fetch().map(function(it) { return it.name });
}
Template.extrasTypeAhead.onRendered(function() {
     Meteor.typeahead.inject();
});
<template name="extrasTypeAhead">
    <input class="typeahead" name="extras" type="text"
            placeholder="Extras" 
            autocomplete="off" spellcheck="off"
            data-sets="existingExtras"/>
</template>
pmwisdom commented 9 years ago

I was using data-sets instead of data-source. Woops. I'll leave this here in case someone else makes this really stupid mistake.