Skip to content

Commit 52bc517

Browse files
committed
revert: keepAlign is not work as expect
1 parent 5a52454 commit 52bc517

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/Popup.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ interface PopupProps {
5959
point?: Point;
6060
zIndex?: number;
6161
mask?: boolean;
62-
keepAlign?: boolean;
6362

6463
// Motion
6564
motion: MotionType;
@@ -250,7 +249,6 @@ class Popup extends Component<PopupProps, PopupState> {
250249
prefixCls,
251250
className,
252251
style,
253-
keepAlign,
254252
stretch,
255253
visible,
256254
align,
@@ -334,7 +332,6 @@ class Popup extends Component<PopupProps, PopupState> {
334332
disabled={mergedAlignDisabled}
335333
align={align}
336334
onAlign={this.onAlign}
337-
keepAlign={keepAlign}
338335
>
339336
<PopupInner
340337
prefixCls={prefixCls}

src/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ export interface TriggerProps {
7575

7676
stretch?: string;
7777
alignPoint?: boolean; // Maybe we can support user pass position in the future
78-
/** Align will repeat trigger when component did updated */
79-
keepAlign?: boolean;
8078

8179
/** Set popup motion. You can ref `rc-animate` for more info. */
8280
popupMotion?: MotionType;
@@ -460,7 +458,6 @@ export function generateTrigger(PortalComponent: any): React.ComponentClass<Trig
460458
popup,
461459
stretch,
462460
alignPoint,
463-
keepAlign,
464461
} = this.props;
465462
const { popupVisible, point } = this.state;
466463

@@ -500,7 +497,6 @@ export function generateTrigger(PortalComponent: any): React.ComponentClass<Trig
500497
maskMotion={maskMotion}
501498
ref={this.popupRef}
502499
motion={popupMotion}
503-
keepAlign={keepAlign}
504500
>
505501
{typeof popup === 'function' ? popup() : popup}
506502
</Popup>

0 commit comments

Comments
 (0)