Hi there,
A client site https://mojocoffees.com/ just started showing this error:
Uncaught TypeError: Cannot read property ‘closest’ of undefined
at Object. (x.js?ver=7.1.2:1)
at cs.0ce70e6.js:1
at Array.forEach ()
at Object.apply (cs.0ce70e6.js:1)
at before (cs.0ce70e6.js:145)
at HTMLBodyElement. (cs.0ce70e6.js:145)
3
x.js?ver=7.1.2:1
The set up is that I have 2 wordpress menus - they look the same but the homepage one is a single page nav with anchor links to content-bands and the subnavs link to the other pages. The subpage nav is a regular nav.
All was working fine for several years but it suddenly stopped working and threw this error.
Any ideas to help? Wordpress and X are up to date.
Thanks,
Alice