Closed pmwisdom closed 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>
I was using data-sets instead of data-source. Woops. I'll leave this here in case someone else makes this really stupid mistake.
Getting this on Meteor.typeahead.inject. Heres my code. Any Ideas?