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

error on input type number #800

Closed
darkworks opened this issue Mar 9, 2022 · 6 comments
Closed

error on input type number #800

darkworks opened this issue Mar 9, 2022 · 6 comments
Labels

Comments

@darkworks
Copy link

on input type="number" am getting error

Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection

suggested fix:

as we are passing id of the input field to clipboard js for copy so i think it will be good that clipboard js convert the input field type to text from number and upon copying done then change it back to number.

@darkworks darkworks added the bug label Mar 9, 2022
@uiii
Copy link

uiii commented Mar 21, 2022

I have the same problem

@obetomuniz
Copy link
Collaborator

obetomuniz commented Apr 1, 2022

Hey @darkworks @uiii, thank you for bringing the issue to our attention.

I'll take it this weekend or early next week. Your suggestion makes sense and the library already does some things in this way to support not natively supported scenarios. Once I reproduce it, I'll be back here with more updates.

@obetomuniz
Copy link
Collaborator

Hey @darkworks. I had a few personal errands recently, but I'll be checking your report in the next few days. Thanks for your patience.

@obetomuniz
Copy link
Collaborator

obetomuniz commented May 3, 2022

Hey again @darkworks, just a hot update about this issue: An initial proposal to support HTML input types that don't support setSelectionRange API is opened. Now I'll wait a few days for code review before consider release it. Thanks again to open the issue.

@darkworks
Copy link
Author

thanks for the update

@darkworks
Copy link
Author

@obetomuniz tested it out : https://www.useotools.com/capacitance-convertor
, working great now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants