Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block inserter is empty when a sidebar contains no widgets #32931

Closed
desrosj opened this issue Jun 23, 2021 · 0 comments · Fixed by #32953
Closed

Block inserter is empty when a sidebar contains no widgets #32931

desrosj opened this issue Jun 23, 2021 · 0 comments · Fixed by #32953
Assignees
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets [Status] In Progress Tracking issues with work in progress

Comments

@desrosj
Copy link
Contributor

desrosj commented Jun 23, 2021

Description

When a sidebar has no widgets, clicking on the block inserter shows an empty list. This only happens on the Widgets screen in the admin area. In the Customizer, the behavior does not happen.

This was originally reported in Trac-53460.

Step-by-step reproduction instructions

  1. Open Widgets screen in the admin.
  2. Open an empty widget area or select and remove all widgets from one.
  3. Click the plus within the widget area to add a block.
  4. Click Browse All.

It can also be seen by clicking the block inserter at the top of the screen directly.

Expected behaviour

All available blocks are displayed in the block insserter.

Actual behaviour

No blocks are displayed.

Screenshots or screen recording (optional)

Widgets Admin screen with an empty block inserter
Correct behavior in the customizer

WordPress information

  • WordPress version: 5.8 beta 3
  • Gutenberg version: 10.9.0 RC1
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: Mac
  • Operating system: MacOS 10.15.x
  • Browser: Firefox
@desrosj desrosj added this to 📥 To do in WordPress 5.8 Must Haves via automation Jun 23, 2021
@desrosj desrosj added [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. [Package] Edit Widgets /packages/edit-widgets labels Jun 23, 2021
@kevin940726 kevin940726 self-assigned this Jun 23, 2021
@kevin940726 kevin940726 added this to Inbox in Block-based Widgets Editor via automation Jun 23, 2021
@kevin940726 kevin940726 moved this from Inbox to Issues in progress in Block-based Widgets Editor Jun 23, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 24, 2021
Block-based Widgets Editor automation moved this from Issues in progress to Done Jun 25, 2021
WordPress 5.8 Must Haves automation moved this from 📥 To do to ✅ Done Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets [Status] In Progress Tracking issues with work in progress
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants