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

Firefox - Doesn't copy from disabled textfields #200

Closed
michaelkoper opened this issue Mar 7, 2016 · 6 comments
Closed

Firefox - Doesn't copy from disabled textfields #200

michaelkoper opened this issue Mar 7, 2016 · 6 comments

Comments

@michaelkoper
Copy link

Hi!

The script isn't working in Firefox when from a disabled textfield. Here a JSFiddle: https://jsfiddle.net/0rab1zxL/33/

@michaelkoper michaelkoper changed the title Firefox: Doesn't copy from disabled textfields Firefox - Doesn't copy from disabled textfields Mar 7, 2016
@michaelkoper
Copy link
Author

After scanning the source I changed to readonly instead of disabled. It is working now, but it didn't fire an error.

@kafeltz
Copy link

kafeltz commented Mar 8, 2016

#198

@zenorocha
Copy link
Owner

Fixed at 07a1f84. Please use v1.5.10 in order to benefit from this.

@alexweissman
Copy link

Is this a technical limitation, or a semantic decision? It isn't always possible to interchange readonly for disabled, as they are functionally different.

@zenorocha
Copy link
Owner

zenorocha commented Jan 16, 2017

Unfortunately, this is a technical limitation imposed by browser vendors.

@alexweissman
Copy link

alexweissman commented Jan 16, 2017

Ah, ok. That must only be a problem with the data-* usage, then. I was able to get it work with disabled fields by manually initializing the Clipboard object. Take a look at my example here: http://stackoverflow.com/a/41671732/2970321

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

4 participants