Expand onCheck is Showing Icons for Checkboxes without Sub Items
cardguy1000 opened this issue · comments
When using the expand/collapse options the 1st child checkboxes show the expand icon when clicked.
For example if you have St. Louis as the parent and Chesterfield, Jefferson County, etc... as children, when you click on St. Louis it will as expected expand the tree and select the children Chesterfield, Jefferson County, etc. However, now if you uncheck Chesterfield for example it will incorrectly show the expand icon next to Chesterfield even though Chesterfield has no children.
See my example here:
http://pastebin.com/9MP6YxE1
Please, make a test including your tree into div element. Something like this:
<div id="myTree">
<ul>
<li class="collapsed"><input type="checkbox"><span>St. Louis</span>
<ul>
<li><input type="checkbox"><span>Chesterfield</span>
<li><input type="checkbox"><span>Jefferson County</span>
<li><input type="checkbox"><span>North County</span>
<li><input type="checkbox"><span>South County</span>
<li><input type="checkbox"><span>Sunset Hills</span>
<li><input type="checkbox"><span>West County</span>
</ul>
</ul>
</div>
The issue remains even when placed inside of a div.
Here is the code I used:
http://pastebin.com/5z3dsJdL
Thanks. I'll check ASAP.
Fixed