The header search button does not autofocus on the sliding search input form
-
Hello,
After clicking the search button, the search input field does not get the focus immediately.
On baskerville/js/global.js,
$(".search-toggle").on("click", function(){ $(this).toggleClass("active"); $(".header-search-block").slideToggle(); $(".header-search-block #s").focus(); return false; });
should be
$( ".search-toggle" ).off( "click" ).on( "click", function() { $( this ).toggleClass( "active" ); $( ".header-search-block" ).slideToggle(); if( $( this ).hasClass( "active" ) ) { $( ".header-search-block .s" ).focus(); } return false; } );
Thanks,
- The topic ‘The header search button does not autofocus on the sliding search input form’ is closed to new replies.