-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Text not copied to clipboard in disabled textarea #41
Comments
Have you tried |
Works fine with |
;D |
I encountered this problem too. I think you should update the readme and the web site to mention about |
@ngocdaothanh is correct, |
solution- |
@Damini25 your solution worked for me. Thanks a lot! |
I am using clipboard.js to copy text from a disabled textarea (the text is programmatically generated and I don't want the user to edit it before copying):
With the
disabled
property the text is not copied to the clipboard, despite the clipboard success event indicating that it is:Removing the
disabled
property on the textarea, clipboard functions as expected and text is copied.The text was updated successfully, but these errors were encountered: