Use ClipboardJS latest version #57154
Labels
[Package] Compose
/packages/compose
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
[Type] Enhancement
A suggestion for improvement.
Description
ClipboardJS latest version is 2.0.11 see https://github.com/zenorocha/clipboard.js/releases/tag/v2.0.11 released 1 year and a half ago.
It includes a fix for a focus loss issue that was reported upstream at zenorocha/clipboard.js#680
In #23994 / #24022 we introduced a workaround that is no longer necessary. Worth noting
packages/compose/src/hooks/use-copy-on-click/index.js
is now deprecated. The same workaround was ported to the new hookuseCopyToClipboard
.WordPress Core already uses ClipboardJS 2.0.11.
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: