Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override the copyColor function? #29

Open
cle-marine opened this issue Dec 26, 2024 · 0 comments
Open

Override the copyColor function? #29

cle-marine opened this issue Dec 26, 2024 · 0 comments

Comments

@cle-marine
Copy link

cle-marine commented Dec 26, 2024

Description

When using the ColorPicker component within an Electron project the copy function throws an error due to privileges. Would it be possible to override the copyColor function with maybe a passed component prop function? This would allow for using the Electron clipboard function instead and bypass the use of window.navigator.clipboard.writeText.

Also, having the ability to disable copying altogether might be a nice additional feature.

Motivation

Allowing for this would make for easier implementation in frameworks that don't allow direct use of the Clipboard API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant