• Resolved cusmin

    (@cusmin)


    Hi,

    I got this error when I try to use Cusmin with Woocommerce. Cusmin is adding some classes to the WP admin menu with JavaScript. It looks like that Woocommerce is listening for these changes and does not handle this particular case correctly.

    The error is thrown in this file
    /wp-content/plugins/woocommerce/packages/woocommerce-admin/dist/app/index.min.js?ver=1.2.3
    on line 2:58145

    Is there a chance that you could add a null check for this case?

    This is the particular code:

    var c=document.querySelector("#"+e.wpOpenMenu);c.classList.remove("wp-not-current-submenu")

    it fails on c.classList where c is null

    Thanks!

    • This topic was modified 4 years, 5 months ago by cusmin.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TypeError: “c is null” wpNavMenuClassChange’ is closed to new replies.