Skip to content

Commit 2ae3aeb

Browse files
committed
Added clicked node to returned values of onCheck and onExpand
1 parent e19b880 commit 2ae3aeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/CheckboxTree.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ class CheckboxTree extends React.Component {
6666
const { noCascade, onCheck } = this.props;
6767

6868
this.toggleChecked(node, node.checked, noCascade);
69-
onCheck(this.serializeList('checked'));
69+
onCheck(this.serializeList('checked'), node);
7070
}
7171

7272
onExpand(node) {
7373
const { onExpand } = this.props;
7474

7575
this.toggleNode('expanded', node, node.expanded);
76-
onExpand(this.serializeList('expanded'));
76+
onExpand(this.serializeList('expanded'), node);
7777
}
7878

7979
getFormattedNodes(nodes) {

0 commit comments

Comments
 (0)