jstree icon indicating copy to clipboard operation
jstree copied to clipboard

BUG: delete node is not removed from get_checked array

Open kpetrow opened this issue 3 years ago • 0 comments

fiddle: fiddle

After deleting a node it is still in get checked array as false. This means if you delete and then need to check if more than one node is checked, one needs to iterate over checked array and remove false's

inst.get_checked(true).length ; // this is x
inst.check_node('2');
inst.delete_node('2');
inst.get_checked(true).length ; // this is x+1 should be x

kpetrow avatar Aug 19 '22 18:08 kpetrow