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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add action clickToCopy #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kindoflew
Copy link

PR for #17.
I ended up having each half of try/catch dispatch a 'copysuccess' or 'copyerror' event so elements can listen for these specific actions instead of any copy events on the page.

Also, I tried and failed implementing tests for this and after looking more into JSDOM I think it's because navigator.clipboard doesn't exist in their code and I'm not yet sure how to mock global methods like that (learning in public 馃槄). I'm new to open source, and programming in general, so I really appreciate you taking time out of your day for this. Thanks!

@swyxio
Copy link
Owner

swyxio commented Feb 4, 2022

responded in #17

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

Successfully merging this pull request may close these issues.

None yet

2 participants