Permalink
Browse files

Focus search on icon click

  • Loading branch information...
ArtOfCode- committed Dec 29, 2018
1 parent 7b72f65 commit 18fbcd3a0e81d97fea3828c5eb2794466fccfd6a
Showing with 1 addition and 0 deletions.
  1. +1 −0 _assets/js/search.coffee
@@ -31,6 +31,7 @@ $(window).on 'turbolinks:load', ->

$('.search-link, .search-nav .close-icon').click ->
$('.top-nav').toggleClass('search-mode')
$('#search-input').focus()
false

$('#search-input').focus -> $('.search-nav').addClass 'focus'

0 comments on commit 18fbcd3

Please sign in to comment.