Inndy / vue-clipboard2

A simple vue2 binding to clipboard.js
https://vue-clipboard2.inndy.tw/
MIT License
1.77k stars 242 forks source link

Internet Explorer 11 - onCopy fires but nothing is copied to clipboard #70

Open potatowave opened 5 years ago

potatowave commented 5 years ago

Hi,

https://clipboardjs.com/ suggests that IE 9+ should work.

I am testing in IE 11.

Console logging the event does show the 'text' is there, however nothing makes it to the clipboard. The same code works in Google Chrome on the same device.

Are there any additional steps/configurations I'm missing to get it to work in IE?

I'm am including Vue, and vue-clipboard like so:

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://unpkg.com/vuex"></script>
<script src="js/vue-clipboard.min.js"></script>

I'm assuming this could be a security setting, however I don't have access to change them (group settings)

Inndy commented 4 years ago

@potatowave I just found that legacy IE does not have Promise API, so you should load promise-polyfill.