meteor-typeahead
meteor-typeahead copied to clipboard
Can't get the server side search sample to work
When the page loads, exactly one call to the search handler is being made -- but an invalid one with all parameters set to undefined. This happens even without any user input.
If I then enter something into the field, nothing happens. It seems as if the event handlers are broken.
+1. I just noticed this has stopped working in my application. Downgrading doesn't seem to help. Is this related to Meteor v1.2?
same problem
And found the solution. According to https://github.com/sergeyt/meteor-typeahead/issues/121 event names were synced with typeahead docs, so you should use data-select="selected" instead of data-selected="selected"
FYI you also need to define Meteor.methods on client side. Meteor generates internal stubs for them in order to RPC them.