You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 Electronclipboard
function instead and bypass the use ofwindow.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
The text was updated successfully, but these errors were encountered: