diff --git a/src/select/parts/virtual-list.tsx b/src/select/parts/virtual-list.tsx index b59589ac7d..93b611ef9d 100644 --- a/src/select/parts/virtual-list.tsx +++ b/src/select/parts/virtual-list.tsx @@ -74,7 +74,10 @@ const VirtualListOpen = forwardRef( menuEl: menuRefObject?.current, }); } else { - scrollToIndex(index); + // Fix for AWSUI-61506. Defer scroll to next frame to ensure + // virtual items are measured after re-render. When called from + // parent's useEffect, measurements may not be ready yet. + requestAnimationFrame(() => scrollToIndex(index)); } } previousHighlightedIndex.current = index;