-
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
"Open in new tab" property is not always saved when "Save draft" is used #19365
Comments
There is definitely something fishy going on with In your case What is also weird is that when you already have a link and you want to click the I also think that if you're in |
How’s this one going? |
Possible duplicate of #17334. At least when changing "Open in New Tab" after pressing the Edit (pencil) icon, it appears (based on inline code comments) to have been intentional that changes which occur while in that editing mode would only persist once clicking the "Apply" button next to the input field, or pressing Enter while in the URL input. This can make sense for edits to the URL itself, which should only take effect after a user has finished their changes and explicitly decides to commit them. However, demonstrated by this issue, it's not a very clear interaction for the "Open in New Tab" toggle, which I think would be reasonable to expect should always take effect immediately. In your screencast, it might appear as though you've expanded and changed the value of "Open in New Tab" without first pressing Edit (pencil), but because you had already pressed the button once earlier (and the dialog disappeared), this might actually have been another issue which has since been resolved in Gutenberg 7.2.0 (#19394, fixed by #19440) where the editing mode has taken effect and carried over from the first time the dialog was shown. I'm sure this would have contributed to the confusion, because even if the user does understand that URL edits must be committed, this bug might have led them to think that they're not editing the link, and thus the toggle should be applied immediately. The screencast in #17334 would seem to show that the toggle value is reset even when not first having clicked the Edit (pencil) icon. I'm not yet clear if this is an issue specific to the Make/Core blog, since I've been unable to reproduce locally. It could be a case that the site is running an older version of the plugin, or that there is custom server-side filtering which is removing the link Worth noting: There are some work-in-progress iterations being made to this link editing experience at #19462, which may resolve some or all of the issue. At least, it removes the uncertainty around whether the toggle should apply immediately because the "Open in New Tab" toggle is no longer shown when the user is editing the link (instead, it's still and only shown when first clicking the link to view it). As action items, I might propose:
In the meantime, the user-facing workaround is:
|
#19462 had regressed usability for common keyboard workflows in link editing, so the "Open in New Tab" toggle has been reintroduced to link editing as part of #20052. There is discussion in #20007 related to this balance of keyboard usability and settings availability. In mind of the potential for confusion that had existed previously, the following accommodations were made:
|
Describe the bug
The "Open in a new tab" setting is not persisted if "Save draft" is used after it is set and the inline editing screen is not closed.
This happens in Gutenberg in the latest version of WordPress and with Gutenberg on
master
.To reproduce
Steps to reproduce the behavior:
Expected behavior
The setting is changed and saved immediately, and saving is not blocked by the "Save draft" button.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: