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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 [BUG] - Copy button doesn't work in Safari #298

Open
ollevche opened this issue May 17, 2024 · 2 comments
Open

馃悰 [BUG] - Copy button doesn't work in Safari #298

ollevche opened this issue May 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ollevche
Copy link
Member

Description

There is a copy button on code snippets, which should insert the snippet's content into the user's clipboard. It doesn't work properly in Safari (inserts a few spaces).

Reproduction steps

1. Go to 'https://opentofu.org/docs/language/state/encryption/#configuration' in Safari
2. Click on 'Copy button' (right upper corner of the snippet)
3. Try to paste it somewhere

Screenshots

No response

Logs

No response

Browsers

Safari

OS

Mac

@ollevche ollevche added the bug Something isn't working label May 17, 2024
@janosdebugs
Copy link
Contributor

@damianstasik I have no Mac, could you please take a look at this?

@damianstasik
Copy link
Collaborator

I can reproduce the issue on Safari and it looks like copy-text-to-clipboard package is having some issues there. We could try switching to Clipboard API which has pretty good support and would fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants