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

NumericTextBox Select on Focus (Safari 8.0.8)

3 Answers 85 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
PrimePay
Top achievements
Rank 1
PrimePay asked on 19 Aug 2015, 08:07 PM

 

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?

 

 

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 24 Aug 2015, 06:40 AM

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
0
PrimePay
Top achievements
Rank 1
answered on 24 Aug 2015, 01:32 PM

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

0
Petyo
Telerik team
answered on 26 Aug 2015, 02:42 PM

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
Tags
NumericTextBox
Asked by
PrimePay
Top achievements
Rank 1
Answers by
Petyo
Telerik team
PrimePay
Top achievements
Rank 1
Share this question
or