metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Address copy tooltip persists after switching accounts

Open hsy822 opened this issue 1 year ago • 2 comments

Describe the bug

When a user copies an account address and switches to a different account, the tooltip indicating "Address copied!" remains visible, even though the address belongs to a different account.

Expected behavior

After switching accounts, the tooltip should reset and display "Copy to clipboard" instead of "Address copied!"

Screenshots/Recordings

Image

Steps to reproduce

  1. Open MetaMask (MetaMask MV3 12.10.1).
  2. Copy the address of an account (e.g., Account 1).
  3. Switch to a different account (e.g., Account 2).
  4. Hover over the address of the new account.
  5. Observe that the tooltip still displays "Address copied!" instead of "Copy to clipboard."

Error messages or log output

No console errors related to this issue.

Detection stage

In production (default)

Version

12.10.1

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

This issue may be caused by the copied state persisting even when the account changes.

Severity

No response

hsy822 avatar Mar 05 '25 05:03 hsy822

This is still happening in v12.18.2, where the account copied appears on different accounts when switching.

DanielTech21 avatar Jun 02 '25 17:06 DanielTech21

This is still happening in v12.18.2, where the account copied appears on different accounts when switching.

I have submitted a pull request to resolve the issue, and I believe it will be merged soon.

hsy822 avatar Jun 16 '25 03:06 hsy822

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in 60 days. Thank you for your contributions.

github-actions[bot] avatar Jul 17 '25 00:07 github-actions[bot]

This issue was closed because there has been no follow activity in 90 days. If you feel this was closed in error please provide evidence on the current production app in a new issue or comment in the existing issue to a maintainer. Thank you for your contributions.

github-actions[bot] avatar Sep 15 '25 00:09 github-actions[bot]