hummingbird-treeview icon indicating copy to clipboard operation
hummingbird-treeview copied to clipboard

addNode is unable to find the correct anchor

Open Goswinus opened this issue 5 years ago • 0 comments

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");

Goswinus avatar Aug 30 '19 14:08 Goswinus