-
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
Fix: Navigation block is broken when focus is applied to the ellipsis menu in the block sidebar #52694
Conversation
… menu in the block sidebar
Size Change: +2 B (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
Flaky tests detected in c0adc8e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5577350374
|
This seems to be connected to #52635. I can't replicate it consistently, but I think we need to look into the root cause. |
Yes, I am consistently able to reproduce this issue.
Perhaps if you have made some changes to the Navigation block, you may not be able to reproduce this issue. if you run |
@scruffian is it to do with which endpoint fetches the entity? Maybe the fallback vs the standard posts endpoint? The fallback |
@t-hamano those steps don't work for me. I have totally wiped my site and started again. I have seen the issue though, so I'll keep trying to replicate it... |
I think this is how we should fix it: #52758 |
I have confirmed that the issue has been resolved by #52758 and will close it. |
Fixes: #52691
What?
This PR fixes a problem in the sidebar of the navigation block where the block breaks when focus is placed on the topmost ellipsis menu.
ae29b02f8bf98120609e5e8aff50f243.mp4
Why?
The direct cause is that the object is passed to the text of the
ToolTip
component. ThecurrentTitle
that this PR is modifying is used in this text.My guess is that when the default navigation embedded in the theme's template is rendered by the site editor, its title will be an object with the rendered property because it is processed server-side.
How?
I have made the
rendered
property the preferred title.Testing Instructions