Skip to content

Commit f352161

Browse files
committed
chore: adjust context api
1 parent c69fcae commit f352161

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OptionList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useBaseProps } from 'rc-select';
22
import type { RefOptionListProps } from 'rc-select/lib/OptionList';
33
import type { TreeProps } from 'rc-tree';
44
import Tree from 'rc-tree';
5-
import { InternalContext } from 'rc-tree';
5+
import { UnstableContext } from 'rc-tree';
66
import type { EventDataNode, ScrollTo } from 'rc-tree/lib/interface';
77
import KeyCode from 'rc-util/lib/KeyCode';
88
import useMemo from 'rc-util/lib/hooks/useMemo';
@@ -342,7 +342,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
342342
{activeEntity.node.value}
343343
</span>
344344
)}
345-
<InternalContext.Provider value={{ nodeDisabled }}>
345+
<UnstableContext.Provider value={{ nodeDisabled }}>
346346
<Tree
347347
ref={treeRef}
348348
focusable={false}
@@ -378,7 +378,7 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
378378
expandAction={treeExpandAction}
379379
onScroll={onPopupScroll}
380380
/>
381-
</InternalContext.Provider>
381+
</UnstableContext.Provider>
382382
</div>
383383
);
384384
};

0 commit comments

Comments
 (0)