@@ -14,12 +14,13 @@ import {
1414 toPathValueStr ,
1515} from '../utils/commonUtil' ;
1616import { toPathOptions } from '../utils/treeUtil' ;
17+ import CacheContent from './CacheContent' ;
1718import Column , { FIX_LABEL } from './Column' ;
1819import useActive from './useActive' ;
1920import useKeyboard from './useKeyboard' ;
2021
2122const RefOptionList = React . forwardRef < RefOptionListProps > ( ( props , ref ) => {
22- const { prefixCls, multiple, searchValue, toggleOpen, notFoundContent, direction } =
23+ const { prefixCls, multiple, searchValue, toggleOpen, notFoundContent, direction, open } =
2324 useBaseProps ( ) ;
2425
2526 const containerRef = React . useRef < HTMLDivElement > ( ) ;
@@ -213,15 +214,17 @@ const RefOptionList = React.forwardRef<RefOptionListProps>((props, ref) => {
213214
214215 // >>>>> Render
215216 return (
216- < div
217- className = { classNames ( `${ mergedPrefixCls } -menus` , {
218- [ `${ mergedPrefixCls } -menu-empty` ] : isEmpty ,
219- [ `${ mergedPrefixCls } -rtl` ] : rtl ,
220- } ) }
221- ref = { containerRef }
222- >
223- { columnNodes }
224- </ div >
217+ < CacheContent open = { open } >
218+ < div
219+ className = { classNames ( `${ mergedPrefixCls } -menus` , {
220+ [ `${ mergedPrefixCls } -menu-empty` ] : isEmpty ,
221+ [ `${ mergedPrefixCls } -rtl` ] : rtl ,
222+ } ) }
223+ ref = { containerRef }
224+ >
225+ { columnNodes }
226+ </ div >
227+ </ CacheContent >
225228 ) ;
226229} ) ;
227230
0 commit comments