mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [cascader] disabled option can't trigger cancel checked (#7604)
This commit is contained in:
@@ -194,7 +194,9 @@ class Node {
|
||||
|
||||
this.checked =
|
||||
this.loaded &&
|
||||
this.children.every((child) => child.loaded && child.checked) &&
|
||||
this.children
|
||||
.filter((child) => !child.isDisabled)
|
||||
.every((child) => child.loaded && child.checked) &&
|
||||
checked
|
||||
this.indeterminate =
|
||||
this.loaded && checkedNum !== totalNum && checkedNum > 0
|
||||
|
||||
Reference in New Issue
Block a user