Hi webix community !
In a treeState enabled tree, if i click on a parent node having some disabled childs, disabled childs are checked and
getChecked() return also disabled nodes, because a disabled node is checked when clicking on the parent node. Is it expected or is it a bug ?
My work around to only have non disabled checked nodes: in “
onItemCheck” event, loop on checked items and create a new array without disabled items. Note that in my code, unchecking disabled item make the parent node always in the same state (i.e we can no longer check it to enable/disable child nodes). That’s why the unchecking code is commented.
The documentation does not mention any node’s attribute to work around that, so i think that cleaning
getChecked() results in the only way. Right ?
Any suggestions ? thank you