Skip to content

[Feature Request]: Add event handlers to CopyToClipboard #4040

@TrevorBurnham

Description

@TrevorBurnham

Description

Currently, the CopyToClipboard has no event handlers whatsoever, making it impossible to detect user interaction without resorting to hacks. I have a use case where I'd like to close a popover when the user performs a copy action. It'd also be nice to be able to record those events for analytics, as we can when the user performs virtually any other interaction.

I'd suggest a pair of event handlers named onCopySuccess and onCopyFailure.

Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions