-
Notifications
You must be signed in to change notification settings - Fork 723
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
As of Chrome 33, the keyboard does not work on inputs where 'type=email' or 'type='number' #241
Comments
Hmm, so should I go ahead and only support "text", "search", "url", "telephone" and "password" type inputs? This all seems kind of silly to me to not support caret positioning in all other input types. |
Ugh! I ran right into this roadblock today. I finally got some time to spend checking out the latest I tried a few kludges, including setting the input type to "text" temporarily in the code then back to "number". I also tried bypassing the caret stuff. Neither really worked out. The keystrokes would insert at the beginning of the input when I tested it out. I agree with you -- it's very annoying that they have borked these input types in the name of 'adhering to spec'. I'm not clear what implementing these restrictions on selectionStart solves in practice. Seems to me like it's going to break a lot of apps out there. I'm mulling over removing |
Relevant Bug/discussion over on w3.org Go add your 2-cents if you're inclined. |
I wonder if this would help.... If an input is of a type that doesn't support caret positioning, the plugin will instead create a preview with an input of "text" type to handle all the caret positioning and interactions. Then when the user accepts the changes, it is added back to the original input. Of course this would require you setting the |
…rome doesn't support selectionStart and selectionEnd for them any longer
resolves #241: treat number input fields separately, because Chrome does...
I see this error in the console:
Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('email') does not support selection.
Probably because of this
https://code.google.com/p/chromium/issues/detail?id=324360
The text was updated successfully, but these errors were encountered: