Skip to content

Commit 8f47675

Browse files
committed
chore: remove conductCheck
1 parent 07b7c32 commit 8f47675

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/OptionList.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type { DataNode, FieldNames, Key, SafeKey } from './interface';
1313
import { getAllKeys, isCheckDisabled } from './utils/valueUtil';
1414
import { useEvent } from 'rc-util';
1515
import { formatStrategyValues } from './utils/strategyUtil';
16-
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
1716

1817
const HIDDEN_STYLE = {
1918
width: 0,
@@ -210,9 +209,8 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
210209
// calculate disabled state
211210
const selectableNodeKeys = getSelectableKeys(node, fieldNames);
212211
const simulatedCheckedKeys = [...checkedKeys, ...selectableNodeKeys];
213-
const { checkedKeys: conductedKeys } = conductCheck(simulatedCheckedKeys, true, keyEntities);
214212
const simulatedDisplayValues = formatStrategyValues(
215-
conductedKeys as SafeKey[],
213+
simulatedCheckedKeys as SafeKey[],
216214
showCheckedStrategy,
217215
keyEntities,
218216
fieldNames,

0 commit comments

Comments
 (0)