Hi, I’ve implemented this but somehow it only responds to clicking of the hamburger icon (to open/close) the menu. This means when the user clicks a link or button within the open responsive menu, that link or button functions correctly but the menu doesn’t close afterwards - i.e. the
slideToggle function is ignored or the event listener attached to the responsive menu doesn’t fire.
Would anyone have a guess as to how or why this may be happening?
I considered an event bubbling conflict of some sort and reviewed potential conflicts but the only other event listener attached here is a
gtag attached to the CTA button within the responsive menu. However even when removing this the responsive menu still doesn’t close after the user taps a link within it.
I’ve implemented the jQuery and CSS code exactly as described above. Thanks for any ideas as to what may be going wrong.