woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.15k stars 10.73k forks source link

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

Closed mattsherman closed 1 week ago

mattsherman commented 2 weeks ago

Prerequisites

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 https://github.com/WordPress/gutenberg/pull/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