diff --git a/assets/javascripts/views/search/search.coffee b/assets/javascripts/views/search/search.coffee index 1f48ef42..e4f3900c 100644 --- a/assets/javascripts/views/search/search.coffee +++ b/assets/javascripts/views/search/search.coffee @@ -42,7 +42,7 @@ class app.views.Search extends app.View autoFocus: => unless app.isMobile() or $.isAndroid() or $.isIOS() - @input.focus() unless document.activeElement is @input + @input.focus() unless document.activeElement?.tagName is 'INPUT' return reset: ->