I can't figure out why the select even is not firing. Consider the directives below and associated javascript even wiring. Please advise.
<input id="customerSearch" placeholder="Search Customer"
kendo-auto-complete
k-suggest="true"
k-height="100"
k-data-text-field="'name'"
k-data-source="customerSearchDataSource"
ng-model="search"
k-template="'<span>${ data.name }</span>'">
$(function () {
$("#customerSearch").kendoAutoComplete({
select: function (e) {
var item = e.item; // never hits here.
...
}
});
<input id="customerSearch" placeholder="Search Customer"
kendo-auto-complete
k-suggest="true"
k-height="100"
k-data-text-field="'name'"
k-data-source="customerSearchDataSource"
ng-model="search"
k-template="'<span>${ data.name }</span>'">
$(function () {
$("#customerSearch").kendoAutoComplete({
select: function (e) {
var item = e.item; // never hits here.
...
}
});