Focus() is not working in ionic using ios 10 safari browser


#1

focus() is not working in ionic using ios 10 safari browser.

It works when you use chrome emulator but not when use ios 10 safari browser.

below is the code i’m using to focus element.

(function () {
var rvMobileApp = angular.module(‘rvMobileApp.shared.directive’);

rvMobileApp.directive('rvSetFocus', function ($timeout) {
    return {
        link: function (scope, element, attrs) {

            $timeout(function () {
                element[0].focus();
            }, 100);
        }
    };
});   

})();


#2

I am waiting to get any response on this issue.Can any ionic expert check this issue.