I had two ul elements inside of a li and bonsai was only recognizing the last one. If you look at line 160, you can see that it sets the subList data value as the last of the subLists and then the other sub lists are ignored with expanded and collapsing.
The change I made fixes the issue but I'm sure you know better if A) there's a better way to solve this or B) what might break with this change.
I had two
ul
elements inside of ali
and bonsai was only recognizing the last one. If you look at line 160, you can see that it sets thesubList
data value as the last of the subLists and then the other sub lists are ignored with expanded and collapsing.The change I made fixes the issue but I'm sure you know better if A) there's a better way to solve this or B) what might break with this change.