Don't autofocus search input when another input is focused

pull/385/merge
Thibaut Courouble 8 years ago
parent f9a456cefd
commit 54c7c0df5c

@ -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: ->

Loading…
Cancel
Save