Merge pull request #567 from view-design/revert-445-fix/tree-checking-disabled-node
Revert "fix: disabled node can be checked"
This commit is contained in:
commit
82fbcc8a10
1 changed files with 1 additions and 5 deletions
|
@ -174,11 +174,7 @@
|
|||
if (this.checkStrictly) return;
|
||||
|
||||
for (let key in changes) {
|
||||
if (key === 'checked' && node.disabled) {
|
||||
this.$set(node, key, node.checked);
|
||||
} else {
|
||||
this.$set(node, key, changes[key]);
|
||||
}
|
||||
this.$set(node, key, changes[key]);
|
||||
}
|
||||
if (node[this.childrenKey]) {
|
||||
node[this.childrenKey].forEach(child => {
|
||||
|
|
Loading…
Add table
Reference in a new issue