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

ngClipboard: suddenly chrome issues "Illegal constructor" using ngClipboard #44

Open
3ric6 opened this issue Mar 2, 2018 · 2 comments

Comments

@hunganh0403
Copy link

hunganh0403 commented Mar 2, 2018

i have the same issue, and find out a way to fix it while waiting for the answer:
reason:
ngclipboard.js uses clipboard.js so maybe new commit from clipboard.js cause the issue
solution:
use the old version of clipboard.js
how to do it:
replace this:
https://cdn.rawgit.com/zenorocha/clipboard.js/master/dist/clipboard.min.js
to this:
https://cdn.rawgit.com/zenorocha/clipboard.js/2.0/dist/clipboard.min.js

hope it help.

@manishsaraan
Copy link
Contributor

This error is occurring due to the latest version release of ClipboardJs(2.0). I have fixed this issue in PR #45 .

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

3 participants