patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

Can't remove node

Open Climberdav opened this issue 8 years ago • 4 comments

Hello,

If I try to remove a node with this $('#tree').treeview('removeNode', [ '0.0.3.3' ]); it fire this error : bootstrap-treeview.min.js:1 Uncaught TypeError: Cannot read property 'remove' of undefined at g._removeNodeEl (http://localhost/cours2/web/assets/vendor/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js:1:16323) at g.<anonymous> (http://localhost/cours2/web/assets/vendor/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js:1:21255) at String.f (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:3698) at Function.each (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:2861) at g.removeNode (http://localhost/cours2/web/assets/vendor/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js:1:21152) at Object.f [as removeNode] (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:3698) at HTMLDivElement.<anonymous> (http://localhost/cours2/web/assets/vendor/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js:1:26758) at Function.each (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:2861) at n.fn.init.each (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:845) at n.fn.init.a.fn.(anonymous function) [as treeview] (http://localhost/cours2/web/assets/vendor/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js:1:26626)

Climberdav avatar Jan 26 '17 12:01 Climberdav

my practice here: http://blog.csdn.net/hotqin888/article/details/54798737

3xxx avatar Jan 31 '17 01:01 3xxx

Uncaught TypeError: node.remove is not a function

guoguolq avatar Feb 24 '17 09:02 guoguolq

@Climberdav could you please post a fiddle where it is reproducible?

skateman avatar Jul 31 '17 07:07 skateman

Same error here, someone found a solution?

Deca avatar Dec 02 '19 15:12 Deca