ClipboardCopy uses deprecated document.execCommand
DOM API
#5475
-
Since this API is deprecated (and therefore could break at any moment), would you consider migrating this functionality to the Clipboard API? |
Beta Was this translation helpful? Give feedback.
Answered by
nicolethoen
Apr 4, 2023
Replies: 1 comment
-
This is an old discussion, but FWIW, we have updated the ClipboardCopy component to use the new API :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nicolethoen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an old discussion, but FWIW, we have updated the ClipboardCopy component to use the new API :)
https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/components/ClipboardCopy/ClipboardCopy.tsx#L15