@@ -93,7 +93,7 @@ export interface TreeSelectProps<ValueType = any, OptionType extends DataNode =
9393  listHeight ?: number ; 
9494  listItemHeight ?: number ; 
9595  listItemScrollOffset ?: number ; 
96-   onDropdownVisibleChange ?: ( open : boolean )  =>  void ; 
96+   onPopupVisibleChange ?: ( open : boolean )  =>  void ; 
9797  treeTitleRender ?: ( node : OptionType )  =>  React . ReactNode ; 
9898
9999  // >>> Tree 
@@ -163,8 +163,8 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
163163    listItemHeight =  20 , 
164164    listItemScrollOffset =  0 , 
165165
166-     onDropdownVisibleChange , 
167-     dropdownMatchSelectWidth  =  true , 
166+     onPopupVisibleChange , 
167+     popupMatchSelectWidth  =  true , 
168168
169169    // Tree 
170170    treeLine, 
@@ -582,22 +582,13 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
582582  ) ; 
583583
584584  // ========================== Dropdown ========================== 
585-   const  onInternalDropdownVisibleChange  =  React . useCallback ( 
585+   const  onInternalPopupVisibleChange  =  React . useCallback ( 
586586    ( open : boolean )  =>  { 
587-       if  ( onDropdownVisibleChange )  { 
588-         const  legacyParam  =  { } ; 
589- 
590-         Object . defineProperty ( legacyParam ,  'documentClickClose' ,  { 
591-           get ( )  { 
592-             warning ( false ,  'Second param of `onDropdownVisibleChange` has been removed.' ) ; 
593-             return  false ; 
594-           } , 
595-         } ) ; 
596- 
597-         ( onDropdownVisibleChange  as  any ) ( open ,  legacyParam ) ; 
587+       if  ( onPopupVisibleChange )  { 
588+         onPopupVisibleChange ( open ) ; 
598589      } 
599590    } , 
600-     [ onDropdownVisibleChange ] , 
591+     [ onPopupVisibleChange ] , 
601592  ) ; 
602593
603594  // ====================== Display Change ======================== 
@@ -619,7 +610,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
619610  const  treeSelectContext  =  React . useMemo < TreeSelectContextProps > ( ( )  =>  { 
620611    return  { 
621612      virtual, 
622-       dropdownMatchSelectWidth , 
613+       popupMatchSelectWidth , 
623614      listHeight, 
624615      listItemHeight, 
625616      listItemScrollOffset, 
@@ -636,7 +627,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
636627    } ; 
637628  } ,  [ 
638629    virtual , 
639-     dropdownMatchSelectWidth , 
630+     popupMatchSelectWidth , 
640631    listHeight , 
641632    listItemHeight , 
642633    listItemScrollOffset , 
@@ -716,8 +707,8 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
716707          // >>> Options 
717708          OptionList = { OptionList } 
718709          emptyOptions = { ! mergedTreeData . length } 
719-           onDropdownVisibleChange = { onInternalDropdownVisibleChange } 
720-           dropdownMatchSelectWidth = { dropdownMatchSelectWidth } 
710+           onPopupVisibleChange = { onInternalPopupVisibleChange } 
711+           popupMatchSelectWidth = { popupMatchSelectWidth } 
721712        /> 
722713      </ LegacyContext . Provider > 
723714    </ TreeSelectContext . Provider > 
0 commit comments