Bootstrap - Can't click dropdown child menu items on mobile and first click not triggering nav-collapse

前端 未结 2 459
情深已故
情深已故 2020-12-31 05:16

I\'ve run into two issues with dropdown menu items on mobile devices. Specifically:

  1. My nav-collapse isn\'t shown on the first click of btn-navbar, but only on
相关标签:
2条回答
  • 2020-12-31 05:25

    This was initially a bootstrap problem. See the fix here: https://github.com/twbs/bootstrap/issues/9543

    0 讨论(0)
  • 2020-12-31 05:32

    Yes, I've seen this before and I saw the issue is on github as well. I don't remember exactly where I found this, but some guy was saying that it was an issue about setting those elements to position: absolute; and that re setting them to static would fix it.

    So why don't you go ahead and try this on your custom CSS:

    CSS

    .dropdown-backdrop {
      position: static;
    }
    

    Let me know if we're on the same page and this solved your issue.

    0 讨论(0)
提交回复
热议问题