From 4e47f7d2448eaac63f4dce773dff8e7c0cec81c4 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:02:46 +1100 Subject: [PATCH] Tidy comments --- packages/block-editor/src/components/list-view/block.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/list-view/block.js b/packages/block-editor/src/components/list-view/block.js index ee7d7c679fd69..c912d75794632 100644 --- a/packages/block-editor/src/components/list-view/block.js +++ b/packages/block-editor/src/components/list-view/block.js @@ -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,