Skip to content

Adjusting link text and clicking to open in a new tab closes link modal without saving the adjustments #45741

@paaljoachim

Description

@paaljoachim

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

  1. Create a link.
  2. Open the existing link.
  3. Change the link text.
  4. Click the Open in new tab toggle.
  5. Notice the link modul closes and does not save the changes.

---> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions