-
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 double click to edit text of link #59599
Conversation
Size Change: +6 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
This makes sense to me and solves the issue. I'd like some more eyes on it though as there could be other considerations I missed. |
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.
Approving the code but can't test the actual interaction.
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. |
Testing this via playground and found an odd "link is empty" notice but otherwise this works well for double click to edit: Screen.Recording.2024-03-05.at.3.30.50.PM.movThe only other point of feedback is that if you click inside a link (UI opens), click another word nearby, then click back again it seems to automatically go to edit rather than showing the UI. I'd expect I'd have to do a proper double click again. |
Just tested the branch locally and can replicate the same issue as Anne -
I'll also note that I tested the button block which has a similar interaction (you click on linked text and the link popover shows up) but the popover doesn't get focus like it does with the paragraph and heading block. Probably outside the scope of this issue, but the inconsistent behavior could probably be addressed in a separate issue. |
The Link UI on other blocks will need to be handled separately as you suggest. |
Closing in favour of #59635 |
What?
Fixes #59525
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Screen.Capture.on.2024-03-05.at.15-08-52.1.mp4