after drag, some branch node become leaf node, but function isBranch still return true.
code:
webix.ui({
rows:[
{
id: "info", view:"label", label: "text"},
{
id: "testTree", view: "tree", drag: true, select: true,
data: [{value:"root", data:[{value:"a1"}, {value:"a2", data:[{value:"a22"}]}]}],
on: {onSelectChange: function(id){
if ($$("testTree").isBranch(id)) {
$$("info").setValue("node is NOT leaf");
} else {
$$("info").setValue("node is leaf");
}
}}
}
]
});
first, a2 is not leaf, drag a22 to root, a2 should be leaf, but isBranch return error info