Skip to content

Writing Flow: Shift + down-arrow key to select across spacer block selects one too many blocks #53674

Open
@jasmussen

Description

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:

3 blocks selected

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions