Skip to content

fix: click truncated address copies full address#221

Open
yueying12345678-sudo wants to merge 1 commit into
LasticXYZ:mainfrom
yueying12345678-sudo:main
Open

fix: click truncated address copies full address#221
yueying12345678-sudo wants to merge 1 commit into
LasticXYZ:mainfrom
yueying12345678-sudo:main

Conversation

@yueying12345678-sudo

Copy link
Copy Markdown

What

Clicking a truncated address (e.g. 0x1234...5678) now copies the full address to clipboard.

Changes

  • Added onClick handler using navigator.clipboard.writeText()
  • Visual feedback: text turns green and shows "Copied!" for 1.5s
  • Fallback for older browsers via document.execCommand('copy')
  • Added cursor-pointer + hover:text-blue-500 to indicate clickability
  • Added keyboard support (Enter key) and role="button" for accessibility

Closes #156

Add onClick handler to copy full address to clipboard.
Visual feedback with 'Copied!' state + keyboard support.
@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lastic-ui Error Error Jun 6, 2026 8:07am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Click truncated address copies full address

1 participant