-
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 Link UI: Remove onClose from onSelectBlock #67760
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -18 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Flaky tests detected in ba071eb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12398632624
|
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.
onSelectBlock was being called after from the QuickInserter even if the link ui had already been closed. This results in some weird states due to the function containing old states. There have been updates to this flow around closing the link ui since the code was originally written, and the onClose should be handled by the popover already.
1e62a4d
to
ba071eb
Compare
@Mamaduka - Rebased! |
What?
Fixes a bug where the
onClose
from the NavigationLinkUi
popover was being called after theLinkUI
was already closed.Why?
Fixes #67712
How?
Remove
onSelectBlock
from theQuickInserter
even if theLinkUI
had already been closed. There have been updates to this flow around closing theLinkUI
since the code was originally written, and theonClose
should be handled by the popover already.Testing Instructions
Steps taken from @darnado's in #67712
In general, test inserting blocks from both the navigation link ui inserter and from clicking "Browse all" and inserting blocks into the navigation block.
Testing Instructions for Keyboard
Screenshots or screencast