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

IE11 bug

2 Answers 63 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Darryl
Top achievements
Rank 1
Darryl asked on 04 Sep 2014, 11:39 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 05 Sep 2014, 09:46 AM
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.

 
0
Darryl
Top achievements
Rank 1
answered on 05 Sep 2014, 04:22 PM
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.
Tags
NumericTextBox
Asked by
Darryl
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Darryl
Top achievements
Rank 1
Share this question
or