-
Notifications
You must be signed in to change notification settings - Fork 125
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
Discontiguous selection is not supported. #5
Comments
Copy to clipboard has some limited browser support with fallback for other
browsers. But this is something different and interesting. I'll have a look
tomorrow, it's midnight here already.
|
Hm, that seems like a known issue: sudodoki/copy-to-clipboard#2 I tested with span, button, div and other tags. It seems like using something other then button gives this error. Also I can avoid the issue by using Comes from https://chromium.googlesource.com/chromium/blink.git/+/master/Source/core/editing/DOMSelection.cpp As a possible solution I can lock component to render button passing all props to it so it is possible to style it. |
Parallelshell works in Windows, fixes #4
When I use
<div>
rather than<button>
inside<CopyToClipboard>
, I get a warning in the console, and nothing is copied to the clipboard.Codepen
Any idea why is this happening?
The text was updated successfully, but these errors were encountered: