-
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
Navigation Block inspector: fix link UI popover opening on links that have a url #47828
Conversation
Size Change: +1 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
6fd4281
to
8e46fa8
Compare
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.
The change makes sense and my testing showed the update fixes the problem.
@fluiddot seems like I'm having the same issue that @draganescu had on his PR with the react native e2e tests, do you think this is related to my change at all? I can't get them to pass. Thank you! |
Co-authored-by: Dave Smith <444434+getdave@users.noreply.github.com>
8e46fa8
to
9c11ed3
Compare
@MaggieCabrera thanks for the call out 🙇. Similar to my comment on that PR, this change seems unrelated to the mobile E2E test failure, so if it keeps failing, feel free to merge the PR as is. We have recently merged a PR that should improve the stability of the mobile E2E tests, so you could also consider rebasing from |
Thanks for the heads up! |
Flaky tests detected in 9c11ed3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4116414120
|
Related bug #47829 |
Co-authored-by: Dave Smith <444434+getdave@users.noreply.github.com>
I believe this should have been backported to 6.2. I raised a PR #48676 |
Co-authored-by: Dave Smith <444434+getdave@users.noreply.github.com>
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 39e4b61 |
What?
This fixes a bug when you have a navigation menu with a custom link and you try to insert the navigation block and that triggers the link UI popover on every insert.
Why?
It's a bad bug :D
How?
We are checking for the URL instead of the id of the last inserted block before deciding to trigger the link UI popover open.
Testing Instructions
To reproduce the original bug:
On a clean install, create and save a navigation menu with a custom link.
On a new post, insert a navigation block, you will see the the popover showing even if the link in the menu has a URL.
After the fix, the popover shouldn't show.
If you click on the inserter to add a new custom link to the menu, it should trigger the popover for you to customize the new link.
Screenshots or screencast
The bug: