I have to work with pop-ups containing long lists. If the list gets too long the popper overflows the body. I would like to have the pop-up show the scrollbars instead.
Example:
<body>
<div class="h-100 d-flex">
<div id="container" class="mx-auto my-auto bg-grn">
OOF
</div>
</div>
<div id="tooltip" class="bg-blu overflow-auto" style="color: white">
<!-- Ideally this should overflow -->
Long content
</div>
<!-- But instead the whole body overflows -->
</body>
<script>
const tooltip = document.getElementById('tooltip')
tooltip.innerText += 'Long content'.repeat(450)
const popper = Popper.createPopper(document.getElementById("container"), tooltip, {
placement: 'right-start'
})
</script>
View it on JSFiddle. On jsFiddle the console is blocking the x scrollbar but it is there.