Bootstrap button drop-down inside responsive table not visible because of scroll
I solved myself this and I put the answer in scope to help other user that have same problem: We have an event in bootstrap and we can use that event to set overflow: inherit
but this will work if you don't have the css property on your parent container.
$('.table-responsive').on('show.bs.dropdown', function () {
$('.table-responsive').css( "overflow", "inherit" );
});
$('.table-responsive').on('hide.bs.dropdown', function () {
$('.table-responsive').css( "overflow", "auto" );
})
and this is the fiddle
info:
In this fiddle example works strange and I'm not sure why but in my project works just fine.
A CSS only solution is to allow the y-axis to overflow.
http://www.bootply.com/YvePJTDzI0
.table-responsive {
overflow-y: visible !important;
}
EDIT
Another CSS only solution is to responsively apply the overflow based on viewport width:
@media (max-width: 767px) {
.table-responsive .dropdown-menu {
position: static !important;
}
}
@media (min-width: 768px) {
.table-responsive {
overflow: inherit;
}
}
https://www.codeply.com/go/D3XBvspns4