From 60acb3af2d63a60bf863ddc73528a1e1d0178adb Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Tue, 21 May 2013 15:12:50 -0700 Subject: [PATCH] docs (index) there should be no autofocus when docs are read The search box should not receive autofocus when browsing the docs as the primary purpose of the docs it to convey information, not search. --- docs/src/templates/js/docs.js | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index cbb0a45207d0..33c37e2e7262 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -123,7 +123,6 @@ docsApp.serviceFactory.fullTextSearch = ['$q', '$rootScope', function($q, $rootS docsApp.directive.focused = function($timeout) { return function(scope, element, attrs) { - element[0].focus(); element.bind('focus', function() { scope.$apply(attrs.focused + '=true'); });