Closed group icon shown on childless nodes #2507
Unanswered
jonathanrace77
asked this question in
Q&A
Replies: 1 comment
-
|
Turns out this was related to lazy loading on the back end and forcing 'children' as true. I added a conditional to only return true if the group count was more than 0 and the issue is sorted now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has this one been solved? I've found quite a few problems with this online but no solutions.
Problem:
It seems as though all of the nodes are defaulting to having a closed icon, until they are opened and shown to have no children, at which point things are updated.
I was looking at using
$("#tree").jstree().get_node(this.id)in order to find if it has children and then if not then I could manually change the class but... It turns out that all of the children arrays are empty until they are opened.Any help would be appreciated on this, either a way to find out if a node has children (without clicking on it) or if there's another workaround / fix.
Massively appreciated either way! :)
Beta Was this translation helpful? Give feedback.
All reactions