-
Notifications
You must be signed in to change notification settings - Fork 473
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
Support clipboardData
like dataTransfer
.
#585
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 15a7d92:
|
Codecov Report
@@ Coverage Diff @@
## master #585 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 24
Lines ? 559
Branches ? 140
==========================================
Hits ? 559
Misses ? 0
Partials ? 0
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I think I'd like to have a test for this use case specifically. Could you add one please?
I've added a basic test asserting that a POJO similar to Eventually as we add paste support to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super! Thank you!
@all-contributors please add @calebmer for code |
I've put up a pull request to add @calebmer! 🎉 |
@all-contributors please add @nickmccurdy for tests |
I've put up a pull request to add @nickmccurdy! 🎉 |
🎉 This PR is included in version 7.13.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
To support the paste event you need the
clipboardData
key (which jsdom ignores). This commit extends how DOM testing library supportsdataTransfer
for the drop event toclipboardData
.This allows us to write tests for pasting.
Checklist: