Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prent node is not check if children are checked and disabled #123

Open
mhascak opened this issue May 11, 2019 · 1 comment
Open

Prent node is not check if children are checked and disabled #123

mhascak opened this issue May 11, 2019 · 1 comment

Comments

@mhascak
Copy link

mhascak commented May 11, 2019

Hello I have problem.

Parent node is not checked if children nodes are checked and also makred as disabled.
If I remove disabled flag parent node is checked correctly.

Problem reproduction example:

FIDDLE - https://jsfiddle.net/s80hajmg/

  function getTreeData() {
    	return [
          {
            displayName: 'JS: The Right Way',
            state: { expanded: true, **disabled: true**  },
            children: [
              { displayName: 'Getting Started', state: { checked: true, **disabled: true** } },
              { displayName: 'JavaScript Code Style', state: { selected: true, **disabled: true**  } }
            ]
          }
        ]
    }
@amsik
Copy link
Owner

amsik commented May 13, 2019

Hello! Disabled nodes are skipped in the calculation of parent checked status. Need to think about this: do not skip the check or add a new tree's property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants