Open hayahayao opened 4 years ago
And I think the problem maybe in Line 46 of cascader-panel/src/node.js
get isDisabled() {
const { data, parent, config } = this;
const disabledKey = config.disabled;
const { checkStrictly } = config;
return data[disabledKey] ||
!checkStrictly && parent && parent.isDisabled; // here
}
because the first-floor nodes don't have parent, instead they have this.isDisabled
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.13.1
OS/Browsers version
chrome 81.0.4044.129
Vue version
2.6.11
Reproduction Link
https://codepen.io/azurecho/pen/VwvWbaG
Steps to reproduce
What is Expected?
the first-floor items should also be set disabled
What is actually happening?
the first-floor items are still abled