mirror of
https://github.com/element-plus/element-plus.git
synced 2025-03-07 15:47:57 +08:00
fix(components): [cascader] disabled option can't trigger cancel checked (#7604)
This commit is contained in:
parent
89b3239528
commit
60483d4100
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user