Skip to content

Use ClipboardJS latest version #57154

Closed

Description

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 hook useCopyToClipboard.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Package] Compose/packages/compose[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions