question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checking all children of a node should only check the root node

See original GitHub issue

Say you have made a selection like so; screenshot 2016-10-10 at 18 16 41

Shouldn’t All be the only item in the checked array in this scenario? Cause right now, every children will populate the checked array, and the root node will not be included. Or am I wrong here?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
jakezateckycommented, Jan 28, 2019

Model 3 has been fully implemented on the v1.6-dev branch. This can be activated by passing in checkModel="all" to the component. An alpha version of v1.6 has been published (1.6.0-alpha.0) should anyone wish to confirm the functionality or make use of it. A full feature release is planned for a later date.

It remains to be seen whether the second model will be included in the v1.6 release, as implementing its behavior is a bit awkward.

3reactions
fuzunspmcommented, Oct 14, 2020

any news about this? I want to include not only checked leafs but their parent nodes in checked array

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check/Uncheck All Child Nodes by Checking ... - GrapeCity
Extending this functionality we can add a feature which enables us to check/uncheck child nodes when the root/parent node is checked/unchecked.
Read more >
Check for Children Sum Property in a Binary Tree
Given a binary tree, the task is to check for every node, its value is equal to the sum of values of its...
Read more >
Checking if a node in a binary tree has children? [closed]
Because every time you called isChild() , the function will only check whether your root has left-right child or not.
Read more >
Node.childNodes - Web APIs - MDN Web Docs
The read-only childNodes property of the Node interface returns a live NodeList of child nodes of the given element where the first child...
Read more >
Basic Terminology, Traversal Techniques & C++ Tree Types
Level: Represents the generation of a node. A root node is always at level 1. Child nodes of the root are at level...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found