nkbt / react-copy-to-clipboard

Copy-to-clipboard React component
MIT License
2.33k stars 123 forks source link

copy-to-clipboard may be deprecated soon #145

Open abhijit-hota opened 3 years ago

abhijit-hota commented 3 years ago

Not an issue. Just an heads up.

The execCommand feature, on which the package copy-to-clipboard depends on, is now obsolete. Relevant issue.

The author of that package is thinking of "deprecating the library altogether", which I think is the right thing to do.

nkbt commented 3 years ago

It makes sense to switch to use navigator.clipboard instead. I'd be ok replacing copy-to-clipboard with it. Just need to do a bit of testing around. And maybe keep the previous implementation as a fallback for some time.

veloware commented 2 years ago

Just stumbling across this, was this ever switched over to use navigator API rather than execCommand('copy')?