-
Notifications
You must be signed in to change notification settings - Fork 15
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
inputMode should be configureable #48
Comments
@ryan-case-ml VGS Collect allows passing
Please let us know if it didn't work out so we can investigate the issue further. Thank you! |
@AnnaKudriasheva i tried this, and im still seeing a text keyboard on mobile android in chrome |
@ryan-case-ml unfortunately I can't reproduce the issue, can you please open the following code example on your android device to check if it's working: Please also make sure you're using collect version > |
@AnnaKudriasheva please see this example (slightly modified from yours) where a show/hide value button is added. you'll notice that once |
@ryan-case-ml thank you for the updated example. Now I'm able to replicate it, seems like it appears only on android devices. I'll open a ticket internally and will keep you posted here. Thanks for reporting an issue! |
awesome, thank you @AnnaKudriasheva! |
@AnnaKudriasheva It's OK when type=text and inputmode=numeric |
Hi, sorry for the delay |
thank you for the update @flor-master |
thank you @flor-master |
Expected Behavior
When initializing a form field, VGS should expose the option to configure the
inputMode
of the field. For example, a PIN input would have a type oftext
, and aninputMode
of numeric, so that a numeric keyboard is opened on mobile web across all platforms.Current Behavior
The
inputMode
of a field is currently assumed based on the type of the field. Some fields haveinputMode
as numeric whenhideValue
is true, but when this is set to false, this gets removed from the input for most field types. The only field type whereinputMode
remains asnumeric
whether or nothideValue
is true or false is thenumber
type. But inputs with this type do not support things likemaxLength
which is needed to limit PIN inputs to 4 characters.The text was updated successfully, but these errors were encountered: