-
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
Fix broken Link Control hook #46113
Fix broken Link Control hook #46113
Conversation
Size Change: -3 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
packages/block-editor/src/components/link-control/use-internal-input-value.js
Outdated
Show resolved
Hide resolved
I have totally rebuilt and I still see the issue. To replicate, you have to add a link inside a template part. The second pencil icon that appears is a link to edit the template, not the link itself. I'll look into a fix for this now. |
I just realised this is an issue on trunk as well. I'll create a separate issue for it. |
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
Issue created here: #46149 |
What?
Fixes the
useInternalInputValue
hook to be agnostic of the property it is managing.This was a bug that was accidentally introduced in #37833
Why?
The hook is designed to manage a given value and keep internal state in sync. It was accidentally only managing the
title
property of the linkvalue
object.How?
Make the hook able to manage any property provided rather than just
title
.Testing Instructions
Screenshots or screencast