This is a migrated thread and some comments may be shown as answers.

Is there a way to have consistent input[type="number"] treatment?

3 Answers 99 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sergei
Top achievements
Rank 1
Sergei asked on 25 Mar 2015, 06:20 PM
I am facing user experience issues stemming from Android vendor fragmentation. I have used input[type="number"] elements in my app, because I wanted a "calculator style" keyboard to appear when the control is selected. It works fine on some phones (for example, Google Nexus) but other vendors (for example, Samsung and LG) decided to use modified keyboard layouts without the period key. As a result, it is impossible to enter cents in the amount. 

Is there a way to fix this somehow through a plugin or some other Android project setting? Thank you for your help!

<input name="Amount" type="number" data-bind="value: data.bill_amount" required placeholder="0.00" min="0.00" step="0.01" />

3 Answers, 1 is accepted

Sort by
0
Sergei
Top achievements
Rank 1
answered on 25 Mar 2015, 08:04 PM
What's even more interesting, is that I get the period key in both the Internet and Chrome apps when I load a sample html https://jsfiddle.net/qydxscas/embedded/result/

Is that a WebView issue? If so, it seems Crosswalk https://crosswalk-project.org/documentation/cordova/develop_an_application.html could be the answer. Any feedback?
0
Sergei
Top achievements
Rank 1
answered on 25 Mar 2015, 08:10 PM
Forgot to attach a screenshot of what the keyboard looks like in the browser.
0
Kaloyan
Telerik team
answered on 30 Mar 2015, 01:08 PM
Hello Sergei,

The issue you have come across is a known one for Samsung devices running Android 4.x. You can read more about it here. The good news is that, Crosswalk will most probably fix it on the client's end.

However, as discussed in your other forum thread, at this stage there is no support for Crosswalk in AppBuilder. We have it in the backlog, but unfortunately we need Cordova 4.0 in order to implement it successfully.


Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Apache Cordova
Asked by
Sergei
Top achievements
Rank 1
Answers by
Sergei
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or