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

The event is wrong on IE 11 when I don't allow the website to access my clipboard #304

Closed
Dragon-Rider opened this issue Sep 9, 2016 · 2 comments

Comments

@Dragon-Rider
Copy link

Hi, there :)

I found the "events" of clipborde.js don‘t work well on IE 11, when I didn't allow the website to access to my clipboard.

Minimal example

https://jsfiddle.net/EragonJiang/6zuguyjx/3/

Expected behaviour

image

If you choose "Don't allow" on IE 11(Windows 7), and then click the "copy" button, you can't copy anything from the input box, and the event should be ‘error’.

Actual behaviour

Instead of 'error', what I saw was that 'success' happened instead and my clipboard is empty.

Browsers affected

I tested on all major browsers and IE 11 and 10 does not work.

@Dragon-Rider
Copy link
Author

I read your source code and found that you use the parameter 'succeeded' to check the "document.execCommand(this.action)". And I test it on IE. If I choose “don't allow the website access to the clipboard”, then I execute this command(“document.execCommand(copy)”). It still return 'true',but my clipboard is empty.

image

@Dragon-Rider Dragon-Rider changed the title Not working on IE 11 The event is wrong on IE 11 when I don't allow the website to access my clipboard Sep 9, 2016
@zenorocha
Copy link
Owner

Hey @Dragon-Rider, this is a known issue #77 https://github.com/zenorocha/clipboard.js/wiki/Known-Issues. At this moment, there are no solutions for this problem. If you have an idea, please feel free to send a pull request.

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

2 participants