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

Cursor gets inserted before Zero with IE, leads to _many_ user errors

3 Answers 33 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Shea
Top achievements
Rank 1
Shea asked on 13 Sep 2013, 04:48 PM
When tabbing into a numeric text box, on the webkit browsers when you 'tab' into a numeric text box (with default value of 0), the cursor gets inserted after the 0. Given a table with 3 columns of numeric boxes 3-tab-4-tab-5 yields 3,4,5 as the leading zero just gets dropped. In IE, because the cursor goes after the zero,  3-tab-4-tab-5 yields 30,40,50.  I have tried the latest release and stable, and the bug persists.

I know I can select the text when focusing the numeric box using the hack here. But is there a way to make IE behave like the other browsers without selecting the text?

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Sep 2013, 08:20 AM
Hello Shea,

The behaviour that you are describing is the default behaviour of the browser (IE) and it is not related to the Kendo UI NumericTextBox. As it is using an input elements in its implementation, it is also being affected of the way browsers handle input fields. 

So changing this will require some custom implementation to handle the focus event of the input. The forum topic that you have linked, provides a solution that will work on all major browsers.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shea
Top achievements
Rank 1
answered on 17 Sep 2013, 03:32 PM
Why is the default behaviour different from browser to browser? IE behaves the same as others on text boxes.
0
Kiril Nikolov
Telerik team
answered on 19 Sep 2013, 07:26 AM
Hello Shea,

I can not tell you for sure why Chrome or Internet Explorer decided to implement this functionality in the way it is implemented, but I am sure that they had something in mind when they decided to go with either of these approaches. Modifying this behaviour from Kendo UI will cause a lot of changes in already created applications and can be considered as a breaking change.

I can see that there is already an user voice topic opened on the feedback portal:

http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/3264987-automatically-select-all-when-tabbing-into-the-num

So if it gains popularity, it would be considered for future implementation.
 
Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NumericTextBox
Asked by
Shea
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Shea
Top achievements
Rank 1
Share this question
or