Skip to content

Commit cd36407

Browse files
fix: [Library browse] Unintended scroll upon unit selection #2452 (#2472)
1 parent 46d2465 commit cd36407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library-authoring/units/LibraryUnitBlocks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const ComponentBlock = ({ block, readOnly, isDragging }: ComponentBlockProps) =>
203203
usageKey={block.originalId}
204204
version={showOnlyPublished ? 'published' : undefined}
205205
minHeight={calculateMinHeight()}
206-
scrollIntoView={block.isNew}
206+
scrollIntoView={!readOnly && block.isNew}
207207
/>
208208
</div>
209209
</SortableItem>

0 commit comments

Comments
 (0)