sachinchoolur/ngclipboard

ngClipboard: suddenly chrome issues "Illegal constructor" using ngClipboard

3ric6 opened this issue · 2 comments

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.

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