Make WordPress Core

Opened 6 weeks ago

Last modified 5 weeks ago

#61000 assigned defect (bug)

Pattern Search for Command gives The editor has encountered an unexpected error.

Reported by: kapasias's profile kapasias Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.5
Component: General Keywords:
Focuses: javascript Cc:

Description

File : wp-includes/js/dist/blocks.min.js

First Create Pattern and Then Follow

Steps : https://www.loom.com/share/a4a1eb3c262546829dcb80224c39b048

Change History (4)

#2 @wildworks
5 weeks ago

Thanks for the report.

I was able to reproduce this issue in WP6.5, but it appears to have been fixed in the latest Gutenberg.

Testing Instructions

  1. Create a simple synced pattern in advance.
  2. Open the post editor.
  3. Insert the synced pattern you created earlier.
  4. Click the "Edit Original" button from the block toolbar.
  5. Move to pattern editing mode.
  6. Click the Document Title to launch the Command Palette.
  7. Enter some characters.
  8. Editor crashes.
  9. Enable Gutenberg plugin version 18.1.0.
  10. Repeat steps 2 to 7.
  11. The editor should not crash.

#3 @poena
5 weeks ago

@wildworks Do you know if the fix in Gutenberg is labeled to be included in the next minor release?

#4 @wildworks
5 weeks ago

Do you know if the fix in Gutenberg is labeled to be included in the next minor release?

In the issue reported in this ticket, the browser outputs the following error:

Uncaught TypeError: Cannot read properties of null (reading 'name')
    at isPossibleTransformForSource (blocks.js?ver=1cdc1594170000ce87b5:10138:36)

I found a Gutenberg PR (#59289) that fixes a similar error. This PR may also have fixed the issue reported in this ticket.

Note: See TracTickets for help on using tickets.