I had a problem with cursor placement when using autofocus in IE. The image should clearly show the problem.

Fortunately, I was able to reproduce this in plunker . I divided it into simple objects, so it should be easy enough for you to see what happens.
How to make IE behave?
AngularJS (also available in plunker )
app.directive('autofocus', [ '$timeout', function($timeout) { return function(scope, elem, attr) { scope.$on('autofocus', function(e) { $timeout(function() { elem[0].focus(); }); }); }; } ]); app.factory('autofocus', ['$rootScope', '$timeout', function($rootScope, $timeout) { return function() { $timeout(function() { $rootScope.$broadcast('autofocus'); }); }; }]); app.config(['$stateProvider', function ($stateProvider) { $stateProvider.state('main', { url: '/main' }); }]); app.config(['$stateProvider', function ($stateProvider) { $stateProvider.state('main.modal', { url: '/modal', onEnter: ['$state', '$stateParams', '$modal', 'autofocus', function ($state, $stateParams, $modal, autofocus) { var instance = $modal.open({ templateUrl: 'modal.html' }); instance.result.then(function () {
Markup
<form> <div class="modal-header"> <h3 class="modal-title">I'm a modal!</h3> </div> <div class="modal-body"> <input type="text" name="foo" autofocus> <br> <input type="text" name="bar"> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary">OK</button> <button type="button" class="btn btn-warning" ng-click="$dismiss()">Cancel</button> </div> </form>
source share