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

Copy to clipboard doesn't work in fullscreen mode #127

Open
snigdha920 opened this issue Jan 9, 2023 · 1 comment
Open

Copy to clipboard doesn't work in fullscreen mode #127

snigdha920 opened this issue Jan 9, 2023 · 1 comment

Comments

@snigdha920
Copy link

Copy to clipboard doesn't work when in fullscreen mode.

Here's the reproduction: https://codesandbox.io/s/react-hooks-counter-demo-forked-ogi0uf?file=/src/index.js

Steps to reproduce:

  1. Click on "copy text" when it's not in full screen mode, the text "content copied" is copied to clipboard.
  2. Enter full screen mode by clicking on "enter fullscreen"
  3. Click on "copy text" when it's not in full screen mode, nothing is copied to clipboard.

I'm using react-copy-to-clipboard which uses this package under the hood. I found this related issue: #102

@RAAMENN
Copy link

RAAMENN commented Jan 30, 2023

Same problem here, and I saw 2 PR related to this issue but not accepted yet. Don't know why.

I tried use navigator.clipboard.writeText instead. https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText

It works good with fullscreen

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

No branches or pull requests

2 participants