How to close the menu collapse when bootstrap tour starts?

后端 未结 1 1187
礼貌的吻别
礼貌的吻别 2021-01-27 02:09

I have a site built with \"Drupal 8\" and \"Bootstrap 3\".

How to close the menu collapse when bootstrap \"Tour\" starts ?

https://www.s1biose.com

\"Tour

相关标签:
1条回答
  • 2021-01-27 02:58

    Can you try with this js code instead yours :

            $('#bs-tour-restart').click(function () {
    
                $('#navbar-collapse-first, #navbar-collapse-second').collapse('hide');
                // Restart the tour
                tour.init();
                tour.restart();
            });
    
    0 讨论(0)
提交回复
热议问题