How to fix scrolling with twitter-bootstrap and popover?

前端 未结 5 643
余生分开走
余生分开走 2020-12-15 18:13

I am using twitter-bootstrap and popovers.

I am facing the following problem: when the user clicks on a link that opens a popover at the bottom of the page, it scr

5条回答
  •  青春惊慌失措
    2020-12-15 18:31

    Just use this code. No extra div, class or whatever else needed.

    $("a[data-toggle=popover]").popover().click(function(e) {
            e.preventDefault();
    });
    

提交回复
热议问题