Bootstrap 4: Why popover inside scrollable dropdown doesn't show?

前端 未结 1 1386
栀梦
栀梦 2021-01-06 07:59

I want this to work just like Bootstrap 3. When I have a dropdown with scrollbar on hover popover, and I think there is a problem with Bootstrap 4. I need overflow:hidden; t

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-06 08:26

    There are some issues with popper.js, and how it positions dropdowns, popovers and tooltips. The solution is to set the data-boundary option on the popovers to window...

    Demo on Codeply

    $(document).ready(function() {
      $('[data-toggle="popover"]').popover({
      });
    });
    .dropdown-menu{
    	height: 150px;
    	overflow: hidden;
    	overflow-y: auto
    }
    
    
    
      Bootstrap Example
      
      
      
      
      
    
    
    

    Dropdowns

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