Console Error

I have a data table defined as follows:

var colDefs = [{id:“DelBtn”, header:“del”,width:35, template:"<span class=‘webix_icon fa fa-trash’"},
{id:“ColNo”, header:“Col”,width:35, adjust:true, sort:‘int’},
{id:“Description”, header:“Description”, adjust:true}
];
{view:“datatable”, id:“myTable”, columns:colDefs, drag:true, select:true,
onClick:{
“fa-trash”:function(e,id){$$(“myTable”).remove(id);
}
},

I see the following error in the console:

webix.js:32904 Uncaught TypeError: Cannot read property ‘id’ of undefined
at result._add_item_select (webix.js:32904)
at result._post_select (webix.js:32990)
at result._select (webix.js:32836)
at result._click_before_select (webix.js:32926)
at result. (webix.js:469)
at result._mouseEventCall (webix.js:38358)
at result._mouseEvent (webix.js:38426)
at result._onClick (webix.js:12462)
at HTMLDivElement. (webix.js:469)

It looks like the datable is trying to select the row i’ve just removed. I don’t get the error when property ‘select:false’. I would like the user to be able to highlight the rows. Can I not use the remove method in a datatable that has the ‘select’ property set to true (or ‘row’)?

Thanks,

try to add this after operation

return webix.html.preventEvent(e);

That works.

Thanks you.