-
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
Widget Editor: Fix a problem with 'Move to Widget Area' button not working #48233
Conversation
Size Change: -2 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 5811f6e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4229253281
|
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.
I confirmed the bug and tested that this PR fixes it. The code looks right, thank you 🙇🏻
@ntsekouras |
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: f949698 |
Fixes #48113
What?
This PR fixes a problem with 'Move to Widget Area' button not working in the widget editor.
Why?
I have discovered that the root client ID (
sourceRootClientId
) for the widget area from which I'm moving isnull
. In #30826, when this feature was implemented,yield
was used to get the route ID of the source of the move. Perhaps the parentheses were not removed when they were refactored into theregistry
. The second argument of the currentgetBlockRootClientId
accepts only a single clientId.Screenshots or screencast
Make sure that moving blocks between widgets works correctly.
3a851aefd28468d756ec24f272d6fa37.mp4