diff --git a/app/assets/javascripts/discourse/views/header.js.es6 b/app/assets/javascripts/discourse/views/header.js.es6 index 0986709a52d..c6e7e3013b5 100644 --- a/app/assets/javascripts/discourse/views/header.js.es6 +++ b/app/assets/javascripts/discourse/views/header.js.es6 @@ -58,7 +58,7 @@ export default Discourse.View.extend({ // fade it fast $dropdown.fadeIn('fast'); // autofocus any text input field - $dropdown.find('input[type=text],a:first').focus().select(); + $dropdown.find('input[type=text]').focus().select(); $html.on('click.d-dropdown', function(e) { return $(e.target).closest('.d-dropdown').length > 0 ? true : hideDropdown.apply(self);