Skip to content

Selecting the Document tab should deselect blocks.  #6887

Description

@jasmussen

Describe the bug

When you select a block and the Settings sidebar is open, the Block tab is automatically selected.

When you deselect a block, the Document tab is then opened.

If you select a block, then click the Document tab, logically this should also deselect the block.

To Reproduce
Steps to reproduce the behavior:

  • Click a block, observe the Block tab is opened
  • Click the Documents tab, observe the block is not deselected

Expected behavior

Way back, in version 0.6 I think, we used something a similar feature to autoselect the block inspector when a block had focus. We used a "breadcrumb" style instead of tabs for the sidebar, the idea being that the sidebar was always contextual, and when you had no block selected you were at the document scope, when a block selected you dug into the block scope.

This behavior is now reinstated, although with tabs. But because deselecting a block automatically selects the Document tab, it feels like selecting the Document tab when a block is selected should logically also deselect the block.

Screenshots
deselect

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions