comerc / meteor-autoform-typeahead

Custom "typeahead" input type for AutoForm
MIT License
13 stars 11 forks source link

Must reload page to let typeahead see newly added values #7

Open qrobin opened 8 years ago

qrobin commented 8 years ago

I try to add this nice plugin to my app. Works well, except one thing - I must reload page to let typeahead see newly added values. Values in my app are taken from collection using this function:

Template.registerHelper("opts", function () {
    return Places.find({}, {
        fields: {
            location: true
        }
    }).map(function (it) {
        return {value: it.location};
    })
});

And as helper they go here:

{{> afQuickField name="location" label="Location" type="typeahead" options=opts}}

Maybe there is any way to fix that? Thanks!

comerc commented 8 years ago

feature request: reactive options

marekhattas commented 8 years ago

same problem,, i am storing data in session for options

danielsvane commented 8 years ago

This would be a really nice addition. I looked at it, and concluded that I'm too retarded to implement this myself.