Skip to content

Pressing Enter to Save Repository Name Triggers Two Stacked Toasts — "Saved" and Unexpected "Copied to Clipboard" #2153

Description

@juliankepka

Summary
When editing the repository name in settings and confirming with the Enter key instead of clicking "Save", the changes are saved correctly — but two toast notifications appear simultaneously, stacked on top of each other: one for the successful save and one for "Copied to clipboard", which is irrelevant in this context.

Current Behavior

  • User edits the repository name in the settings.
  • User presses Enter to confirm instead of clicking "Save".
  • The name is saved successfully.
  • Two toast notifications appear stacked: one confirming the save, and one saying "Copied to clipboard" — which was never triggered intentionally by the user.

Expected Behavior

  • Only a single toast should appear confirming the successful save.
  • No "Copied to clipboard" toast should be shown, as the user did not trigger any copy action.
  • Toasts should not stack or overlap.

Steps to Reproduce

  1. Navigate to the Repository Settings page.
  2. Click into the "Name" field and change the value.
  3. Press Enter to confirm.
  4. Observe two stacked toast notifications appearing.
RepoNameBug.mov

Metadata

Metadata

Assignees

No one assigned

    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