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';
14
14
import { isDOM } from '@rc-component/util/lib/Dom/findDOMNode' ;
15
15
import FloatBg from './FloatBg' ;
16
16
import classNames from 'classnames' ;
17
- import MotionContent from './MotionContent' ;
18
17
import { getAlignPopupClassName } from '../util' ;
19
18
20
19
export interface UniqueProviderProps {
@@ -43,8 +42,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
43
42
} ) ;
44
43
45
44
// ========================== Register ==========================
46
- const [ popupId , setPopupId ] = React . useState ( 0 ) ;
47
-
48
45
// Store the isOpen function from the latest show call
49
46
const isOpenRef = React . useRef < ( ( ) => boolean ) | null > ( null ) ;
50
47
@@ -56,9 +53,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
56
53
isOpenRef . current = isOpen ;
57
54
58
55
delayInvoke ( ( ) => {
59
- if ( showOptions . id !== options ?. id ) {
60
- setPopupId ( ( i ) => i + 1 ) ;
61
- }
62
56
trigger ( showOptions ) ;
63
57
} , showOptions . delay ) ;
64
58
} ,
@@ -172,11 +166,7 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
172
166
ref = { setPopupRef }
173
167
portal = { Portal }
174
168
prefixCls = { prefixCls }
175
- popup = {
176
- < MotionContent prefixCls = { prefixCls } key = { popupId } >
177
- { options . popup }
178
- </ MotionContent >
179
- }
169
+ popup = { options . popup }
180
170
className = { classNames (
181
171
options . popupClassName ,
182
172
alignedClassName ,
You can’t perform that action at this time.
0 commit comments