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

4 posts, 0 answers
  1. Shea
    Shea avatar
    58 posts
    Member since:
    Feb 2013

    Posted 13 Sep 2013 Link to this post

    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?

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 17 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Shea
    Shea avatar
    58 posts
    Member since:
    Feb 2013

    Posted 17 Sep 2013 Link to this post

    Why is the default behaviour different from browser to browser? IE behaves the same as others on text boxes.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 19 Sep 2013 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready