Skip to content

Preserve selection when switching block editor tabs #18239

Description

@draganescu

Describe the bug
This is probably an intended feature, but when switching tabs in the editor sidebar between document and block, the current block selection is lost.

The problem is easily recoverable on desktop, but it presents an almost empty screen on mobile, looking like an error.

To reproduce
Steps to reproduce the behavior:

  1. Selet a block
  2. Show the sidebar
  3. Click on Document
  4. Click on Block
  5. No block is selected so this panel is now empty

Expected behavior
I expect the selection to be preserved because there is nothing I did to it by fiddling with the sidebar's tabs.

Metadata

Metadata

Assignees

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