-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load on demands empty children cause exception #858
Comments
I'll have a look. |
The call stack in the screenshot starts with |
I cannot reproduce the error. When does the error occur? When the tree is initialized? |
When I open on demand a child. |
Ah, ok. I wasn't able to reproduce the error that way. Is there something different in your code that might trigger the error? Maybe an option? |
Will try to make a sandbox |
Made a sandbox: https://codepen.io/ivan-kolesov/pen/poMqmVb |
Thanks. I will have a look. |
Work in progress: #859 |
The pr is merged. I plan to release a new version this week. |
The fix is in version 1.8.8. |
version 1.8.7
I am using on-demand loading with dataUrl option as a function.
The server generates a response, and in a certain case the server may return an empty array of children.
This causes an exception (in the source code) when in
openNodeInternal is called.
In this state node.children has an empty array.
Is it possible to avoid trying to open a node when there are no children?
The text was updated successfully, but these errors were encountered: