When i'm running an application on Desktop or Android device, input focus is working fine. But it's not working in ios 10 Safari. I am using angularjs.
$timeout(function () {
var input = $element.find('.my-input-box')[0];
input.focus();
}, 500);
Since you are using angularjs, you should definitely try finding your solution in angular.
Did you try using ngFocus.
I guess it would probably look like this:
html:
<input ng-focus="YourVariable">
And set YourVariable to True.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With