Skip to content

Commit

Permalink
chore: adjust context api
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Dec 2, 2024
1 parent c69fcae commit f352161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OptionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useBaseProps } from 'rc-select';
import type { RefOptionListProps } from 'rc-select/lib/OptionList';
import type { TreeProps } from 'rc-tree';
import Tree from 'rc-tree';
import { InternalContext } from 'rc-tree';
import { UnstableContext } from 'rc-tree';
import type { EventDataNode, ScrollTo } from 'rc-tree/lib/interface';
import KeyCode from 'rc-util/lib/KeyCode';
import useMemo from 'rc-util/lib/hooks/useMemo';
Expand Down Expand Up @@ -342,7 +342,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
{activeEntity.node.value}
</span>
)}
<InternalContext.Provider value={{ nodeDisabled }}>
<UnstableContext.Provider value={{ nodeDisabled }}>
<Tree
ref={treeRef}
focusable={false}
Expand Down Expand Up @@ -378,7 +378,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
expandAction={treeExpandAction}
onScroll={onPopupScroll}
/>
</InternalContext.Provider>
</UnstableContext.Provider>
</div>
);
};
Expand Down

0 comments on commit f352161

Please sign in to comment.