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

Input restricted to single character with usePreview false and input[type="number"] #287

Closed
rsefer opened this issue Jul 10, 2014 · 3 comments
Labels

Comments

@rsefer
Copy link

rsefer commented Jul 10, 2014

When usePreview: false and the input type="number" the input is restricted to a single character. This is the case with every layout I tried (including custom). Wasn't able to debug on my own. Good luck!

Chrome 37 Dev (Mac)

@Mottie
Copy link
Owner

Mottie commented Jul 10, 2014

Hi @rsefer!

Chrome, and I think most other browsers are following this behavior, now does not return a caret position for type="number" and type="email" inputs (see #241).

I recently added some code to switch any preview inputs (usePreview: true) from number type to text (see #279). In your desired situation, we may have to disable caret positioning completely. Honestly, based on pure conjecture, I don't think it'll work the way you want since the plugin needs a caret position.

I'll see what I can do, but my time is very limited for the next month.

@Mottie Mottie added the Bug label Jul 10, 2014
@rsefer
Copy link
Author

rsefer commented Jul 10, 2014

Ah, I see. Thankfully I don't actually need the input to be number so regular text will work just fine. Thanks!

Mottie added a commit that referenced this issue Oct 1, 2014
@Mottie
Copy link
Owner

Mottie commented Nov 20, 2014

Ok, this should be fixed in 1.19.0. Thanks for your patience!

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

2 participants