Making WordPress.org

Opened 5 months ago

Last modified 5 months ago

#7807 new defect (bug)

Close Button Not Working in Block Inserter Menu on "New Pattern" Page

Reported by: parthvataliya's profile parthvataliya Owned by:
Milestone: Priority: normal
Component: WordPress.org Site Keywords:
Cc:

Description

On the "New Pattern" page at WordPress.org, the close button in the block inserter menu is not functioning as expected. When clicking the close button, an error is thrown in the browser console, preventing the block inserter from closing properly. This issue disrupts the user experience by leaving the inserter open when it should close smoothly.

Steps to reproduce the issue:

  1. Navigate to the "New Pattern" page on WordPress.org.
  2. Open the block inserter menu.
  3. Attempt to close the block inserter by clicking the close button.
  4. Observe the error in the browser's developer console.

Attachments (2)

issue.png (173.2 KB) - added by parthvataliya 5 months ago.
7807.png (29.1 KB) - added by densinakum 5 months ago.

Download all attachments as: .zip

Change History (5)

@parthvataliya
5 months ago

#1 @dufresnesteven
5 months ago

I'm actually getting an error on page load.

TypeError: Cannot read properties of undefined (reading 'title')
    at https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=920fbcffbef4cdefccc4:66:3636
    at Array.some (<anonymous>)
    at Ja (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/editor/index.min.js?ver=920fbcffbef4cdefccc4:66:3615)
    at gt (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:45667)
    at yr (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:56332)
    at js (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:120992)
    at Sl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88331)
    at kl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88259)
    at bl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88122)
    at dl (https://wordpress.org/patterns/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85300)

#2 @parthvataliya
5 months ago

@dufresnesteven When the page is reloaded, the error does not occur. I previously created an issue for this, and @dd32 suggested that it could be related to a network issue.

@densinakum
5 months ago

#3 @densinakum
5 months ago

@parthvataliya , Same as the Browse all button click not working

Last edited 5 months ago by densinakum (previous) (diff)
Note: See TracTickets for help on using tickets.