mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Tree: not check node when it's disabled (#11847)
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
if (this.tree.expandOnClickNode) {
|
||||
this.handleExpandIconClick();
|
||||
}
|
||||
if (this.tree.checkOnClickNode) {
|
||||
if (this.tree.checkOnClickNode && !this.node.disabled) {
|
||||
this.handleCheckChange(null, {
|
||||
target: { checked: !this.node.checked }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user