IE11 bug

3 posts, 1 answers
  1. Darryl
    Darryl avatar
    8 posts
    Member since:
    Jun 2014

    Posted 04 Sep 2014 Link to this post

    I am using a NumericTextBox control for entering a credit card number. However, there is a strange bug when this is used in combination with IE11 (I'm unable to test other versions of IE at the moment so I don't know if this is an issue with IE versions > 11).

    If I enter 5415240007992185 and tab away from the control it changes to 5415240007992186.
    If I enter 5415240007992187 and tab away from the control it changes to 5415240007992188.
    If I enter 5415240007992189 and tab away from the control it changes to 5415240007992190.

    There is some upper limit where, for whatever reason, all numbers are changed to the next even number when the control loses focus. Here is the markup I'm using for the control:

    @(Html.Kendo().NumericTextBox()
        .Name("ccAccountNumber")
        .Decimals(0)
        .Format("{0:#}")
        .Spinners(false)
    )
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 05 Sep 2014 Link to this post

    Hello Darryl,

    I believe that the problem you are encountering is related to the JavaScript Number precision limitation. You can find more information about this here.
    Let me know if I am missing something.

    Regards,
    Georgi Krustev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Darryl
    Darryl avatar
    8 posts
    Member since:
    Jun 2014

    Posted 05 Sep 2014 in reply to Georgi Krustev Link to this post

    Yep, that looks like it exactly, Georgi. Thanks for the quick reply - I'll just use a regular text input and some jQuery to limit input to numeric values only.
Back to Top