Closed gatolgaj closed 8 years ago
I can send a Screen cast if required.
You have to return options with format:
return [{value: 'test1', label: 'Test 1'}, {value: 'test2', label: 'Test2'}];
Hello, Sorry that was one of my initial trials but that dint work as well.
for (var i = 0, prediction; prediction = predictions[i]; i++) {
returnValues.push({_id:prediction.place_id,
label:prediction.description,
value: prediction.description }); // set the reativeArray
// console.log("Hello NewArray: " + prediction.description);
newArray[prediction.place_id]=prediction.description; //try setting the normal array
}
I have tried all the combinations with reactiveArray as well as normal array,
I have even tried to set the option using Helper and changing it dynamically using reactive VAR.
Can you create a sample github project that I could see the whole code, test it and fix?
Hello, Thanks for the wonderful piece of code.
I am currently facing issue with universe-select when the data source is from google placesAPI.
First Time Selection works fine , The Second time when we search all the selected values vanishes.
Following is the helper code
The variable
returnValues
is reactive. And the Options are getting updated correctly(verified using console)The ReactiveVar
returnValues
is updated usingkeyup
event ofinput
.I have tried various combinations as well. Like Using the optionsMethod, Reactive Helper Method etc. etc ..
Everytime the options changes the selected values disappear.