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

All: Fix the copy to clipboard button #422

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 15, 2020

The Clipboard.js library often doesn't really copy to clipboard despite
reporting it completed successfully. Instead, this PR switches from it
to a polyfill to a native clipboard async API that works (tested in Chrome 81,
Firefox 75 & Safari 13.1).

Fixes jquery/codeorigin.jquery.com#49

@mgol mgol requested review from dmethvin and timmywil April 15, 2020 21:27
The Clipboard.js library often doesn't really copy to clipboard despite
reporting it completed successfully. Instead, this commit switches from it
to a polyfill to a native clipboard async API that works (tested in Chrome 81,
Firefox 75 & Safari 13.1).

Fixes jquery/codeorigin.jquery.com#49
@mgol mgol merged commit 1cf667e into jquery:master Apr 16, 2020
@mgol mgol deleted the copy-to-clipboard branch April 16, 2020 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Copy to clipboard button don't work
2 participants