focus () does not work in ion mode using the Safari ios 10 browser.
It works when you use the chrome emulator, but not when using the Safari ios 10 browser.
below is the code that I use to focus the element.
var rvMobileApp = angular.module('rvMobileApp.shared.directive'); rvMobileApp.directive('rvSetFocus', function ($timeout) { return { link: function (scope, element, attrs) { $timeout(function () { element[0].focus(); }, 100); } };
Thanks in advance.
source share