vakata / jstree

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

Uncaught InternalError: too much recursion - selecting all nodes using checkbox #2525

Closed KennethSeiero closed 3 years ago

KennethSeiero commented 3 years ago

When trying to check 703 checkboxes, i receive an error. I'm using multi state checkboxes.

I've got all 703 node-items in an "All" parent group. When clicking this "All"-checkbox, i get below error.

Uncaught InternalError: too much recursion _cascade_new_checked_state https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.11/jstree.min.js:4

However, if i call the jstree API using the following:

ReportsDialog.Tree.element.jstree(true).select_all()

It works without any issues, and everything gets checked..

vakata commented 3 years ago

This is odd - can you provide a demo - usually an error with so little nodes means a problem with the data - a parent nested in a descendant for example.