Important fix for menu item not able to be visited due to e.preventDefault.

This commit is contained in:
Frank419 2024-08-28 16:29:32 +08:00
parent 24d8b81e06
commit bf6551ad93

View File

@ -7,8 +7,7 @@ jQuery(document).ready(function($){
e.preventDefault() e.preventDefault()
}) })
$("body").removeClass("loading") $("body").removeClass("loading")
$(".menu-item-has-children").click(function(e){ $(".menu-item-has-children").click(function(){
e.preventDefault()
$(this).toggleClass("active") $(this).toggleClass("active")
$(this).parent().parent().toggleClass("active") $(this).parent().parent().toggleClass("active")
}) })