Dropdown with a form inside with twitter-bootstrap

后端 未结 8 1613
清歌不尽
清歌不尽 2020-12-07 16:44

I have a Dropdown in my TopBar, built with the Twitter Bootstrap CSS framework.

I have 3 problems with it that I can\'t find any solution to:

  1. The text
8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 17:27

    For your third question - In your bootstrap-dropdown.js comment source code row

    $('html').on('click.dropdown.data-api', clearMenus)
    

    and write there this:

    $(document).bind('click', function(e) {
        var $clicked = $(e.target);
        if (!$clicked.hasClass("dropdown-menu") &&
                !$clicked.parents().hasClass("dropdown-menu")){
            clearMenus();
        }
    });
    

提交回复
热议问题