Skip to content

Commit 64df8c7

Browse files
committed
Merge branch 'issue-61' of https://github.com/SDSLeon/react-checkbox-tree into SDSLeon-issue-61
2 parents 04664cb + 12ddfcc commit 64df8c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/CheckboxTree.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class CheckboxTree extends React.Component {
133133

134134
toggleChecked(node, isChecked, noCascade) {
135135
if (node.children === null || noCascade) {
136+
if (node.disabled) return;
136137
// Set the check status of a leaf node or an uncoupled parent
137138
this.toggleNode('checked', node, isChecked);
138139
} else {

0 commit comments

Comments
 (0)