From f352161cf5340bffb7db7240c1cffe21b4650de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Mon, 2 Dec 2024 14:29:31 +0800 Subject: [PATCH] chore: adjust context api --- src/OptionList.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OptionList.tsx b/src/OptionList.tsx index 4b753432..c8defcc5 100644 --- a/src/OptionList.tsx +++ b/src/OptionList.tsx @@ -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'; @@ -342,7 +342,7 @@ const OptionList: React.ForwardRefRenderFunction = (_, {activeEntity.node.value} )} - + = (_, expandAction={treeExpandAction} onScroll={onPopupScroll} /> - + ); };