Merhaba, UL, Li içerisinde bulunan linklere tıklanmıyor.
onclick="location=('/link/') bu kodu ekleyince linke tıklayabiliyorum ancak onclik eklemeden normal bir şekilde çalışsın istiyorum.
Ücretli ücretsiz yardımcı olacaklar yazabilir.
<li>
<a href="">deneme</a>
<ul class="mobile-nav-ul-dropdown">
<li><a href="/deneme"> <span><i class="fas fa-angle-right"></i></span> deneme</a></li>
</ul>
</li> <script type="text/javascript">
$(function(){
$('.menu-item a').on('click',function(event){
event.preventDefault()
$(this).parent().find('ul').first().toggle(300,'swing');
$(this).parent().siblings().find('ul').hide(200);
//Hide menu when clicked outside
$(this).parent().find('ul').mouseleave(function(){
var thisUI = $(this);
$('html').click(function(){
thisUI.hide();
$('html').unbind('click');
});
});
});
});
$(function(){
$('.mobile-nav-ul li a').on('click',function(event){
event.preventDefault()
$(this).parent().find('ul').first().toggle(300,'swing');
$(this).parent().siblings().find('ul').hide(200);
//Hide menu when clicked outside
$(this).parent().find('ul').mouseleave(function(){
var thisUI = $(this);
$('html').click(function(){
thisUI.hide();
$('html').unbind('click');
});
});
});
});
$(".mobile-right-menu").click(function(){
$('.mobile-nav').addClass("active");
});
$(".close-span").click(function(){
$('.mobile-nav').removeClass("active");
});
</script>