-
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
Adjusting link text and clicking to open in a new tab closes link modal without saving the adjustments #45741
Comments
This issue was reviewed in today's Editor Bug Scrub. I was able to confirm this issue. I do think some design feedback is needed on the correct way to handle this. My thought is toggling the "Open in new tab" should never close the modal. This would require an additional click outside the modal to close, but I think it's unintuitive that toggle the setting auto-closes the modal. Quick note, this issue also seems related to #35795 and #40892. |
Agreed. |
As one has the link modal open and does does various things. It should close on clicking the enter symbol or clicking enter on the keyboard.
I too agree. |
+1 to prevent closing the modal I think this is a duplicate of this older issue |
Thanks for finding that @javierarce ..:) I noticed that @getdave Dave made the older issue. Perhaps he or someone else might be able to take a closer look. |
These issues are likely come increasingly into focus as a result of the work on the Nav block offcanvas experiment. |
I'm amazed that this issue exists since I spent an almost 1.5 hours of going through all the conversations here and the related issues (#49091) & spent another 2.5 hours reading the codebase and trying to understand it & finally going for a fix. Created a PR just now to the PR: #50401 |
Accomplishing #50890 will resolve this issue as well. |
@paaljoachim Should now be fixed by #50945 |
Great! Thanks Dave @getdave ! |
Description
When I open an existing link and adjust the text and then also click Open in new tab the link dialog box suddenly closes without the adjustments being saved.
I have to do two operations.
Open a link and change the link text. Click the enter symbol to close it.
Open the link again and then click the Open in new tab and then click the enter symbol to close it.
Step-by-step reproduction instructions
---> It should not close the link modal before I click enter on my keyboard or the enter symbol in the link modal.
Screenshots, screen recording, code snippet
Changing.link.text.and.clicking.open.in.new.tab.closes.link.modul.mp4
Environment info
WordPress 6.1
Gutenberg plugin 14.5
Theme: Twenty Twenty Three
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: