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

Command Palette: triggering the palette after selecting a block in the Site Editor leads to a fatal error #53898

Closed
liviopv opened this issue Aug 23, 2023 · 3 comments
Labels
[Package] Commands /packages/commands [Type] Bug An existing feature does not function as intended

Comments

@liviopv
Copy link

liviopv commented Aug 23, 2023

Description

When trying to test out #52509, I noticed a weird behavior where the Site Editor will glitch and show a black screen if you trigger the Command Palette after selecting a block.

The console is logging:

Uncaught TypeError: Cannot read properties of null (reading 'toString')
    at index.js:261:14
    at Array.map (<anonymous>)
    at AI (index.js:249:4)
    at un (command-menu.js:36:39)
    at St (react-dom.min.js?ver=18:1:47627)
    at $s (react-dom.min.js?ver=18:1:120574)
    at Sl (react-dom.min.js?ver=18:1:88649)
    at kl (react-dom.min.js?ver=18:1:88577)
    at bl (react-dom.min.js?ver=18:1:88440)
    at sl (react-dom.min.js?ver=18:1:85264)

It happens when using Cmmd+K or when clicking on the button at the top bar. Triggering the palette in the post/page editor works fine.

Step-by-step reproduction instructions

  1. Open a page or template in the Site Editor
  2. Select a block
  3. Trigger the Command Palette
  4. Type something

Screenshots, screen recording, code snippet

CleanShot.2023-08-23.at.17.58.36.mp4

Environment info

WordPress 6.3, GB 16.5

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@liviopv
Copy link
Author

liviopv commented Aug 23, 2023

Upon further inspection, it's the same as #53863 it's ok to close this one

@jordesign jordesign added [Type] Bug An existing feature does not function as intended [Package] Commands /packages/commands labels Aug 24, 2023
@jordesign
Copy link
Contributor

Tested in WP6.3 and GB16.5 and can confirm this occurs

@jordesign
Copy link
Contributor

But also closing as duplicate 😂

@jordesign jordesign closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Commands /packages/commands [Type] Bug An existing feature does not function as intended
2 participants