Skip to content

Button block opens new tab after setting link with enter key in Firefox #40449

@coreyworrell

Description

@coreyworrell

Description

After typing or selecting a link for a button, hitting the enter key opens that link right away. It should simply save the link and allow you to continue editing.

Step-by-step reproduction instructions

  1. Insert Buttons block
  2. Click the link icon for the button
  3. Type out a URL
  4. Hit enter key

Screenshots, screen recording, code snippet

gutenberg-button.mp4

Environment info

  • WordPress 5.9.3
  • Firefox 99.0
  • Ubuntu 20.04

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

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions