hummingbird-treeview
hummingbird-treeview copied to clipboard
addNode is unable to find the correct anchor
Not a critical issue!
I was using a dot ('.') in the data-id of a specific (placeholder) node.
addNode is not able to find this node by data-id.
Line 606 of hummingbird-treeview.js is currently:
var that_node = tree.find('input:checkbox[' + anchor_attr + '=' + anchor_name + ']').parent("label").parent("li");
One possible fix is to enclose the anchor_name in double-quotes:
var that_node = tree.find('input:checkbox[' + anchor_attr + '="' + anchor_name + '"]').parent("label").parent("li");