[Bug]: Address copy tooltip persists after switching accounts
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
Steps to reproduce
- Open MetaMask (MetaMask MV3 12.10.1).
- Copy the address of an account (e.g., Account 1).
- Switch to a different account (e.g., Account 2).
- Hover over the address of the new account.
- 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
This is still happening in v12.18.2, where the account copied appears on different accounts when switching.
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.
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.
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.