Skip to content

Commit 95df460

Browse files
author
zhiyang
committed
Tree: not check node when it's disabled
1 parent 61756c5 commit 95df460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tree/src/tree-node.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
if (this.tree.expandOnClickNode) {
168168
this.handleExpandIconClick();
169169
}
170-
if (this.tree.checkOnClickNode) {
170+
if (this.tree.checkOnClickNode && !this.node.disabled) {
171171
this.handleCheckChange(null, {
172172
target: { checked: !this.node.checked }
173173
});

0 commit comments

Comments
 (0)