-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Fix crash on block-related commands #53923
Conversation
Size Change: +13 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
Thank you @t-hamano 🙇🏻 |
Flaky tests detected in fd3ba51. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5966508312
|
@youknowriad @draganescu Thanks for the review! |
Fixes #53863
Related to #52509
What?
This PR fixes a problem in the command palette where the editor crashes due to block-related commands.
Why?
This problem occurs when building a Gutenberg project, as mentioned in this comment. Also, when built, the callback function name is also compressed, so the replace method does not produce the intended string. There is also a problem in terms of localization
How?
I changed the command item to an object and specified the label, icon, callback function, etc. as individual properties.
Testing Instructions
add
,move
, etc. and that the commands are displayed.Note: While I was investigating this issue, I discovered several problems in block related actions. These are not addressed in this PR as they also occur in trunk.