File tree Expand file tree Collapse file tree 2 files changed +1
-49
lines changed Expand file tree Collapse file tree 2 files changed +1
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import useTargetState from './useTargetState';
1414import { isDOM } from '@rc-component/util/lib/Dom/findDOMNode' ;
1515import FloatBg from './FloatBg' ;
1616import classNames from 'classnames' ;
17- import MotionContent from './MotionContent' ;
1817import { getAlignPopupClassName } from '../util' ;
1918
2019export interface UniqueProviderProps {
@@ -43,8 +42,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
4342 } ) ;
4443
4544 // ========================== Register ==========================
46- const [ popupId , setPopupId ] = React . useState ( 0 ) ;
47-
4845 // Store the isOpen function from the latest show call
4946 const isOpenRef = React . useRef < ( ( ) => boolean ) | null > ( null ) ;
5047
@@ -56,9 +53,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
5653 isOpenRef . current = isOpen ;
5754
5855 delayInvoke ( ( ) => {
59- if ( showOptions . id !== options ?. id ) {
60- setPopupId ( ( i ) => i + 1 ) ;
61- }
6256 trigger ( showOptions ) ;
6357 } , showOptions . delay ) ;
6458 } ,
@@ -172,11 +166,7 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
172166 ref = { setPopupRef }
173167 portal = { Portal }
174168 prefixCls = { prefixCls }
175- popup = {
176- < MotionContent prefixCls = { prefixCls } key = { popupId } >
177- { options . popup }
178- </ MotionContent >
179- }
169+ popup = { options . popup }
180170 className = { classNames (
181171 options . popupClassName ,
182172 alignedClassName ,
You can’t perform that action at this time.
0 commit comments