-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Crash when trying to type something in commands after editing blocks #53863
Comments
👋 I can't reproduce.. Can you share a bit more info on the reproduction steps or share a small video? Thanks! |
Hi, @ntsekouras! I included the video in the description and note that this only happens on v16.5.0-rc.1. |
I ran into this and ended up creating a duplicate in #53898 What I found:
CleanShot.2023-08-23.at.17.58.36.mp4 |
Tested and confirmed in WP6.3 and GB16.5 |
I tested again and I was able to reproduce it in the Post Editor as well: CleanShot.2023-08-24.at.10.17.05.mp4
|
I can repro with the latest releases but I can't repro on Gutenberg trunk. The error clearly comes from the block commands hook but unclear as to why so far. |
I cannot reproduce this w/ trunk no matter what I do. The code that seems to trigger the error seems all right since it's never supposed to be null or undefined being in a map on an array with hardcoded values. |
FYI to @tellthemachines and @ramonjd for 6.3.2 possible inclusion! |
Interesting, I found the cause. This problem can be reproduced by building the latest trunk 😅 This is probably due to the fact that the callback value of the array is compressed by the build and the gutenberg/packages/block-editor/src/components/use-block-commands/index.js Lines 250 to 252 in 2aa67f6
Furthermore, since command labels are generated by the Either way, #52509, to which this issue relates, is part of Gutenberg 16.5 and does not ship with WordPress 6.3, so I think it can be excluded from the 6.3.x editor task. |
Description
The Site Editor crashes when trying to type something in commands after editing blocks. You'll see the black screen. See the instructions below.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2023-08-22.at.15.27.08.mov
Environment info
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
Related
The text was updated successfully, but these errors were encountered: