Hi everyone! I’m new to webix (and JS) and I have a question about attaching an onItemClick event to a List:
myList.attachEvent(“onItemClick”, function(id) {
console.log(this.getSelectedItem(false).id);
}
In this situation, the console outputs the previously selected list item instead of the current one (with undefined being output the first time). If you have any ideas, please let me know.
Thanks!