Skip to content

Commit

Permalink
chore: remove conductCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Dec 9, 2024
1 parent 07b7c32 commit 8f47675
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type { DataNode, FieldNames, Key, SafeKey } from './interface';
import { getAllKeys, isCheckDisabled } from './utils/valueUtil';
import { useEvent } from 'rc-util';
import { formatStrategyValues } from './utils/strategyUtil';
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';

const HIDDEN_STYLE = {
width: 0,
Expand Down Expand Up @@ -210,9 +209,8 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
// calculate disabled state
const selectableNodeKeys = getSelectableKeys(node, fieldNames);
const simulatedCheckedKeys = [...checkedKeys, ...selectableNodeKeys];
const { checkedKeys: conductedKeys } = conductCheck(simulatedCheckedKeys, true, keyEntities);
const simulatedDisplayValues = formatStrategyValues(
conductedKeys as SafeKey[],
simulatedCheckedKeys as SafeKey[],
showCheckedStrategy,
keyEntities,
fieldNames,
Expand Down

0 comments on commit 8f47675

Please sign in to comment.