Skip to content

Product Editor: Modal block editor (description field) crashes when Add button is clicked with Gutenberg installed #47560

@mattsherman

Description

@mattsherman

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

With the Gutenberg plugin installed (version 18.3.0 or later), the modal block editor (description field) in the new product editor crashes when the + (Add) button is clicked.

Seems to be caused by WordPress/gutenberg#61108

Expected behavior

The + (Add) button brings up the block inserter.

Screenshot 2024-05-16 at 14 13 27

Actual behavior

The modal block editor (in fact, the entire new product editor) crashes, resulting in a blank page.

Screenshot 2024-05-16 at 14 14 23

Steps to reproduce

With a WooCommerce env with the new product editor enabled (WooCommerce > Settings > Advanced > Features > Experimental features), and Gutenberg plugin (version 18.3.0) installed...

  1. Go to Products > Add New
  2. Click on Description > Full Editor to bring up the modal editor
  3. Click on the + (Add) button in the header
  4. Verify that the modal block editor (and new product editor) crashes, resulting in a blank page

WordPress Environment

n/a

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Metadata

Metadata

Assignees

Labels

BugThe issue is a confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions