• Resolved alpha2

    (@neoseeyou)


    Hello

    Thank you for your plugin, it’s work quite well and no CLS issue ??

    However i have a little JS error message in my dev console and i think it’s related to the search fonction.

    To be more specific, i don’t want to use the search fonction in this menu, so i have only set 3 items in my menu (Store link, Home link and account link).

    Error: Uncaught TypeError: document.querySelector(…) is null

    <anonymous> https://dev1.unae.fr/wp-content/plugins/wp-bottom-menu/inc/main.js?ver=1.1.1:4

    document.querySelector(".wp-bottom-menu-search-form-trigger").addEventListener("click" ,function(){
        wp_bottom_menu_sfw.classList.toggle("sf-active");
        wp_bottom_menu_class.classList.toggle("sf-active");
        if (!wpbmsf){
            wp_bottom_menu_sfw.style.bottom = wp_bottom_menu_class.clientHeight + "px";
            wpbmsf = true;
        } else {
            wp_bottom_menu_sfw.style.bottom = "0px";
            wpbmsf = false;
        }
    });

    Is it possible to correct this issue?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS error’ is closed to new replies.