Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Commit 70a87ee

Browse files
committed
fix: should align with latest position
ant-design/ant-design#31717
1 parent d02147a commit 70a87ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Align.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ const Align: React.ForwardRefRenderFunction<RefAlign, AlignProps> = (
9292

9393
// We only align when element is visible
9494
if (element && isVisible(element)) {
95-
result = alignElement(source, element, align);
95+
result = alignElement(source, element, latestAlign);
9696
} else if (point) {
97-
result = alignPoint(source, point, align);
97+
result = alignPoint(source, point, latestAlign);
9898
}
9999

100100
restoreFocus(activeElement, source);

0 commit comments

Comments
 (0)