nkbt / react-copy-to-clipboard

Copy-to-clipboard React component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

copy-to-clipboard may be deprecated soon

abhijit-hota opened this issue · comments

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.

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.

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