I am using popper.js on the items in a custom-built dropdown menu (it's not a <select>
). The site uses Bootstrap 4.
My poppers look like this, but I want it to overflow outside of the scrolling container:
I want the poppers to appear on the right-hand side of the elements in the scrolling container, but they are forced to stay inside of it. The scrolling container is a <div>
.
Why don't these settings allow the poppers to overflow?:
const indivOptionPopOverSettings = {
placement: 'left',
container: 'body',
trigger: 'hover',
html: true,
modifiers: {
preventOverflow: {
// tried these individually and in various combinations:
enabled: false,
boundariesElement: 'window',
escapeWithReference: true
}
}
};