-
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
Changing URL in link after changing text outside the popover resets it #52659
Comments
I can replicate this bug. I have attached a video(including voice) that shows how to replicate the bug. However, the bug seems to be difficult to reproduce. Changing.URL.in.link.after.changing.text.outside.the.popover.resets.it.mov |
This bug does not happen in other usages of LinkControl such as the Navigation block. Looking into the I tried replicating the bug and I noticed that switching to code view shows that the Looking at this now. |
This line appears to be wiping out the new link value's url change. I still don't know why...
The flow goes into this condition which is not
This only seems to happen when using the keyboard and making a selecting around the last char. Using a mouse and clicking in the "middle" of the text does not cause the bug to manifest. The |
I've raised a placeholder PR in #53533 which has an e2e test which replicates the bug. Steps:
I checked that removing the value syncing does not fix this Issue. |
+1 Just ran into this issue when working with a T51 partner. I'm also able to replicate it locally. Feel free to ping me if I can help with anything! |
This is particularly rough in the common workflow of duplicating content with linked text and then intending to update both the text and link 😅
gutenberg-53533-example.mp4 |
Description
If you change the text of a link in the editor itself and afterwards changing the URL of said link in the popover, the URL change won’t save.
Step-by-step reproduction instructions
The URL is still "#test" afterwards.
Screenshots, screen recording, code snippet
Bildschirmaufnahme.2023-07-15.um.16.09.59.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: