Bootstrap4 dropdown only works in the second click

后端 未结 7 1050
失恋的感觉
失恋的感觉 2021-02-19 07:01

I am working on a django project, that is using bootstrap4 and I\'m with a little problem with dropdown toggler.

The toggler only toggles the dropdown-menu after the seco

7条回答
  •  野性不改
    2021-02-19 07:27

    you need to use the toggle like that and assign the data-target to the drop down menu with it's id

    using

    data-target="#navbarDropdown"

     
    

    and then assign that id to the menu

            
    

提交回复
热议问题