Writing Flow: Shift + down-arrow key to select across spacer block selects one too many blocks #53674
Open
Description
opened on Aug 15, 2023
When I press shift+down arrow across a spacer block, I select 3 blocks instead of two.
Steps to reproduce
- Insert a paragraph, a spacer, then a paragraph
- Set the caret in the middle of the first paragraph
- Press Shift + Down arrow
Observe that three blocks get selected. As is shown in this GIF:
Test content:
<!-- wp:paragraph -->
<p>Paragraph 1 (spacer block below)</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph -->
<p>(spacer block above) Paragraph 2</p>
<!-- /wp:paragraph -->
Activity