Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add clipboard fallback for CopyToClipBoardButton #149

Closed
wants to merge 1 commit into from

Conversation

VolodymyrBg
Copy link

Problem

TODO

Summary of Changes

Implemented a fallback copy mechanism using document.execCommand('copy') for browsers that don't support the modern Clipboard API. This ensures the copy functionality works across a wider range of browsers.

  • Added fallback implementation using document.execCommand
  • Improved error handling and cleanup
  • Removed TODO comment

Implemented a fallback copy mechanism using document.execCommand('copy') for browsers
that don't support the modern Clipboard API. This ensures the copy functionality
works across a wider range of browsers.

- Added fallback implementation using document.execCommand
- Improved error handling and cleanup
- Removed TODO comment
Copy link

vercel bot commented Jan 19, 2025

@VolodymyrBg is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@catalinred
Copy link
Collaborator

Thanks for looking into this but as far as I know there is an impressive browser support for the navigator clipboard property already.

This comment is misleading and was added long time ago.

@catalinred catalinred closed this Jan 20, 2025
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.

2 participants