Skip to content

Commit 98f12c2

Browse files
authored
fix: Active trigger logic (#306)
* not repate trigger active event * add test case
1 parent 3571388 commit 98f12c2

File tree

3 files changed

+63
-151
lines changed

3 files changed

+63
-151
lines changed

examples/basic.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class Demo extends React.Component {
118118
defaultCheckedKeys={this.state.defaultCheckedKeys}
119119
onSelect={this.onSelect}
120120
onCheck={this.onCheck}
121+
onActiveChange={key => console.log('Active:', key)}
121122
>
122123
<TreeNode title="parent 1" key="0-0">
123124
<TreeNode title={customLabel} key="0-0-0">

0 commit comments

Comments
 (0)