zenorocha / clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard:
https://clipboardjs.com
MIT License
33.98k stars 3.98k forks source link

fakeElement.remove() #818

Closed john0916 closed 1 year ago

john0916 commented 2 years ago
<a href="javascript:void(0)" class="copy" :data-clipboard-text="inviteUrl" @click="handleCopyClick">

var clipboard = new ClipboardJS('.copy')
    clipboard.on('success', function (e) {

      e.clearSelection();
    });

    clipboard.on('error', function (e) {

    });

ie 9,10,11 error 对象不支持“remove”属性或方法(methods remove is no support)

ohimesamaiti commented 1 year ago

我也遇到同样问题,请问有解决方案吗?

goozak commented 1 year ago

I was able to fix this (at least in IE11) with this element-remove polyfill mentioned on MDN's Element.remove() page.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.