NumericTextBox Select on Focus (Safari 8.0.8)

4 posts, 0 answers
  1. PrimePay
    PrimePay avatar
    20 posts
    Member since:
    Feb 2015

    Posted 19 Aug 2015 Link to this post

     

    var input = e.container.find("input");
        input.focus(function (e) {
            setTimeout(function () {
                input.select();
            });
        });

     The above code snippet allows for selection of all text in the NumericTextBox upon focus in all browsers except the latest version of Safari on Mac OSX Yosemite (Version 10.10.5). Is there an update for this solution? Or is there an alternative solution that works for all browsers?

     

     

  2. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 24 Aug 2015 Link to this post

    Hello,

     

    The snippet you have posted does not seem to use Kendo UI. Is the problem specific to the numeric widget? Does it work for regular input elements?

     

    Regards,
    Petyo
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. PrimePay
    PrimePay avatar
    20 posts
    Member since:
    Feb 2015

    Posted 24 Aug 2015 in reply to Petyo Link to this post

    Hello Petyo,

    This issue was described in a thread that opened in 2012.
    http://www.telerik.com/forums/select-text-on-focus

    For the thread, this answer was suggested.
    http://docs.telerik.com/kendo-ui/web/numerictextbox/how-to/select-all-on-focus

    It seems that the above mentioned version of Safari has trouble with the setTimeout function. We were wondering whether or not an alternative solution was suggested for this.

    Thank You,
    PrimePay

  5. Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 26 Aug 2015 Link to this post

    Hello,

    I tested the code snippet from our help article without any additional modifications in Safari 8.0.8 on Yosemite, and it seems to work as expected. I may be missing something though. Can you record a screencast of what you observe? Thank you in advance. 

    Regards,
    Petyo
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready