Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Search context not working #193188
     luizzz
    Participant

    Hello. My temporary solution was disabling ENTER keypress on main search and disabling the search button using this jQuery code bellow:

    COPY CODE
    
    jQuery(document).ready(function($){
    $('input#main-search').keypress(function(event){
        if (event.keyCode === 10 || event.keyCode === 13) {
            event.preventDefault();
        }
    });
    
    $('button.header-search-button').click(function(event){
    event.preventDefault();
    });
    });
    

    Maybe it helps

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?