Skip to content

Commit

Permalink
Tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Jan 18, 2023
1 parent 555d801 commit 4e47f7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-editor/src/components/list-view/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ function ListViewBlock( {
? selectedClientIds
: [ clientId ];

// When the block is selected, pass in the ref to the selected item, so that it can be scrolled into view.
// For long lists, the placeholder for the selected block is also observed, within ListViewBranch.
// Pass in a ref to the row, so that it can be scrolled
// into view when selected. For long lists, the placeholder for the
// selected block is also observed, within ListViewLeafPlaceholder.
useListViewScrollIntoView( {
isSelected,
rowItemRef: rowRef,
Expand Down

0 comments on commit 4e47f7d

Please sign in to comment.