vue-clipboard2 icon indicating copy to clipboard operation
vue-clipboard2 copied to clipboard

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

Open potatowave opened this issue 5 years ago • 1 comments

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)

potatowave avatar Sep 04 '19 15:09 potatowave

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

Inndy avatar Oct 28 '19 08:10 Inndy