Every time I click inside the dropdown menus, they unexpectedly close.
This issue is persistent in both the Login menu
and the nav bar
.
Although I’m not a seasoned web developer, I suspect it’s just a simple error that I’ve been overlooking all day.
The problematic portion of the code is as follows (expanded below):
if (e.isDefaultPrevented()) return
$this.attr('aria-expanded', 'false')
$parent.removeClass('open').trigger('ontouchstart', relatedTarget)
Visit zunelex.com to see this error in action.
// JavaScript code snippet
// CSS code snippet
// HTML form snippet