fix: [Library browse] Unintended scroll upon unit selection #2452 (#2472)

This commit is contained in:
Ahtesham Quraish
2025-10-13 19:22:22 +05:00
committed by GitHub
parent 46d2465064
commit cd36407457

View File

@@ -203,7 +203,7 @@ const ComponentBlock = ({ block, readOnly, isDragging }: ComponentBlockProps) =>
usageKey={block.originalId}
version={showOnlyPublished ? 'published' : undefined}
minHeight={calculateMinHeight()}
scrollIntoView={block.isNew}
scrollIntoView={!readOnly && block.isNew}
/>
</div>
</SortableItem>