vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

Error when deleting a parent node bug #2611

Closed jplevene closed 2 years ago

jplevene commented 2 years ago

Since updating to 3.3.12, a few users have been reporting that sometimes when deleting a parent node it does not delete. I managed to get a console error after executing the following commands

var nodes = $("#tree").jstree("get_top_selected", true);
$("#tree").jstree("delete_node", nodes); 

The console error reads: Screenshot 2022-02-22 130007

This does not happen all the time, thus it took me ages to finally get a console image from a customer.

kedniko commented 2 years ago

Error: Uncaught TypeError: this.get_node(...).children(...).triger is not a function Problem: There is a typo in the library. Solution: Just search and replace triger withtrigger

jplevene commented 2 years ago

I already reported it as issue 2614 (https://github.com/vakata/jstree/issues/2614)