-
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
Navigation: Fix missing state for MenuControls #48921
Conversation
The second path highlighted here will never be reached. Since the gutenberg/packages/block-library/src/navigation/edit/menu-inspector-controls.js Lines 48 to 54 in c5d76f8
|
Size Change: -11 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
There has been some refactoring recently hence now some weird code. I think the second path should remain, so the messages are consistent. Plus we aim to remove the big rectangle in the canvas so adding the same message in the inspector helps on that path. |
Sounds good. I will remove the first path and make messages consistent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Flaky tests detected in 79fc433. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4364681588
|
What?
PR fixes props passed to the missing navigation menu controls to avoid an infinite spinner in the sidebar.
How?
Add the missing
currentMenuId
to theMenuInspectorControls
.Testing Instructions
ref
-<!-- wp:navigation {"ref":9999} /-->
.Screenshots or screencast
Before
After