There was an error while loading. Please reload this page.
1 parent f13c352 commit 48daec0Copy full SHA for 48daec0
packages/components/cascader/core/className.ts
@@ -41,7 +41,10 @@ export function getNodeStatusClass(
41
42
const isDisabled = node.disabled || (multiple && (value as TreeNodeValue[]).length >= max && max !== 0);
43
44
- const isSelected = node.checked || (multiple && !checkStrictly && node.expanded && !isLeaf);
+ let isSelected = node.checked || (multiple && !checkStrictly && node.expanded && !isLeaf);
45
+ if (!multiple && !checkStrictly && !isLeaf) {
46
+ isSelected = node.expanded;
47
+ }
48
49
return [
50
{
0 commit comments