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

4 posts, 0 answers
  1. Sergei
    Sergei avatar
    44 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2015 Link to this post

    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" />

  2. Sergei
    Sergei avatar
    44 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2015 in reply to Sergei Link to this post

    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?
  3. Sergei
    Sergei avatar
    44 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2015 in reply to Sergei Link to this post

    Forgot to attach a screenshot of what the keyboard looks like in the browser.
  4. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 30 Mar 2015 Link to this post

    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.

     
Back to Top