Commit d3224b58 authored by hetech's avatar hetech Committed by 杨奕

Tree: not check node when it's disabled (#11847)

parent 61756c5b
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
if (this.tree.expandOnClickNode) { if (this.tree.expandOnClickNode) {
this.handleExpandIconClick(); this.handleExpandIconClick();
} }
if (this.tree.checkOnClickNode) { if (this.tree.checkOnClickNode && !this.node.disabled) {
this.handleCheckChange(null, { this.handleCheckChange(null, {
target: { checked: !this.node.checked } target: { checked: !this.node.checked }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment