I'd like to be able to force a given position, regardless of scroll, layout, etc. After looking through the docs thoroughly, it does not appear that this is an option at present.
https://codepen.io/anon/pen/LLvOve
A setting to have the popper always located in the desired position (e.g. 'top')
Popper shows in different position because of layout (in this case the bottom).
This feels like very basic functionality, so if this is possible please know that it is not at all clear how to go about it. Also I have found configurations that seem to work in chrome but not safari or firefox.
You shoud be able to disable the flip modifier to force the position
OK, after playing with it a bit, the following works:
modifiers: {
flip: {
enabled: false
},
preventOverflow: {
escapeWithReference: true
}
}
It's not entirely clear to me why this works, so consider this a general issue of documentation. Thanks for your help!
We already have an issue to improve the preventOverflow modifier usability
setting flip to false fixed my issue, thanks
Most helpful comment
OK, after playing with it a bit, the following works:
Codepen
It's not entirely clear to me why this works, so consider this a general issue of documentation. Thanks for your help!