I have a Tree with AllowCheckChildren
set to true. When I check a collapsed parent I expect all the children to also be checked in the background and to be included in the @bind-checkvalues list. Currently that's not the case.
Take a look at the Tree documentation: When I select one of the root categories that's not yet checked, I would expect the console to log that category and all it's children. But that does not happen, unless you expand the category before or after checking the item.
The steps below also demonstrate the issue on said documentation page:
- Check 'Condiments', after which the console only logs 'Condiments'
- Expand 'Condiments', after which the console logs 'Condiments' and all its expanded children
- Uncheck and collapse 'Condiments'. Now check it again, and this time the console logs 'Condiments' and all its children (which didn't happen in step 1)
I believe that when 'AllowCheckChildren' is set to true, all the children of the selected parent item, should automatically be checked (and included in checkedvalues) regardless of whether they are being rendered currently (or have been rendered).
Is this a bug, or am I in the wrong?