Checked parent - unchecked child doesn't behave correctly for decoupleChildFromParent = true
See original GitHub issuedata structure:
itCategory = [new TreeviewItem({
text: 'IT', value: 9, checked: true, children: [
{
text: 'Programming', value: 91, children: [], checked: false
}
]
})];
config:
this.ngxTreeviewConfig = {
hasAllCheckBox: false,
hasFilter: false,
hasCollapseExpand: true,
decoupleChildFromParent: true,
maxHeight: 600
};
view:
<ngx-treeview [config]="ngxTreeviewConfig" [items]="itCategory" (selectedChange)="onSelectedChange($event)"></ngx-treeview>
results in:
should result in:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Checked parent - Bountysource
Checked parent - unchecked child doesn't behave correctly for decoupleChildFromParent = true.
Read more >javascript - How can I "check/uncheck" nodes "child/parent ...
I found the answer for my question in own jstree site: link. two_state A boolean. Default is false. If set to true checkboxes...
Read more >Google | Onsite | Front end | Nested Checkbox - LeetCode
If the parent checkbox is unchecked, then all the children checkboxes are unchecked. If some of the children checkboxes are checked, then the...
Read more >Temper Tantrums (for Parents) - Nemours KidsHealth
Temper tantrums range from whining and crying to screaming, kicking, hitting, and breath holding. Get the facts on managing - and preventing -...
Read more >Discipline vs Punishment: The Difference In Child Development
Find out the difference between discipline and punishment, and the best strategies to parent your child without yelling or punishing.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, when using decoupleChildFromParent =true, any changes from parent will not reflect to children. Please change decoupleChildFromParent =false
In my case, i need to check the parent by default when there is not child selected