/* From w3schools */

/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
$(function () {
    $('.c-dropdown__btn').click(function (event) {
        event.preventDefault();
        $(this).nextAll(".c-dropdown__cont").toggleClass('c-dropdown__cont--hide');
    });
});

// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
    if (!event.target.matches('.c-dropdown__btn')) {
        $(".c-dropdown__cont").addClass('c-dropdown__cont--hide');
    }
}
/* From w3schools */

/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
$(function () {
    $('.c-site-nav').on('click', '.c-dropdown__btn', function (event) {
        event.preventDefault();
        $(this).nextAll(".c-dropdown__cont").toggleClass('c-dropdown__cont--hide');
        $(this).nextAll(".mean-expand").click();
    });
});

// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
    if (!event.target.matches('.c-dropdown__btn')) {
        $(".c-dropdown__cont").addClass('c-dropdown__cont--hide');
    }
}
Fix nav issue when using mean menu
Fix nav issue when using mean menu

When the link only had a dropdown and didnt have a link itself, it wouldnt trigger the dropdown on mobile
