meteor-autocomplete
meteor-autocomplete copied to clipboard
Reactive values not supported for things other than `settings`
Is something im missing?
{{> inputAutocomplete settings = settingsMentionsSearchInput id="searchMentions" class="pull-right" placeholder="Search" value="@{{this}}"}}
this return @{{this}} as plain text on the autocomplete.
Have you just tried ... value=this}} ?
yes :s, still the same
Maybe it doesn't support reactive values then; I'm not sure. What happens with value="blah"?
value="e"
works great, so yeah i think reactive values are not supported
Thanks for the response =D
I defined my reactivevars like this:
Template.Calculator.onCreated(function CalculatorOnCreated() {
// counter starts at 0
this.parent1 = new ReactiveVar({"name": ""});
this.parent2 = new ReactiveVar({"name": ""});
this.results = new ReactiveVar("collapse");
});
then assigned them in events like this:
"autocompleteselect input#parent1": function(e, t, doc) {
Template.instance().parent1.set(doc);
},
"autocompleteselect input#parent2": function(e, t, doc) {
Template.instance().parent2.set(doc);
},