Might have been caused by #3607
Position should be relative to Popup's trigger. Should respect position prop
It seems that the right side of the Popup is positioned to the edge of the container, which pushes the left side further left, out of the trigger position. With overflow undefined it works as expected. See the testcase :)
0.87.2
(0.87.1 works as expected)
It's definitely caused by #3607, but a fix provided there was correct. You can change boundariesElement element via popperModifiers:
https://popper.js.org/popper-documentation.html#modifiers..preventOverflow.boundariesElement
<Popup
popperModifiers={{ preventOverflow: { boundariesElement: "window" } }}
/>
https://codesandbox.io/s/semantic-ui-react-zf6pd
For me it looks like an edge case: positioning was correct only arrow is broken, but we can't fix this on our side 馃槶
passing boundariesElement fixed the issue for me :)
Can you please consider adding this to the docs?
I do not consider this as an edge case to be honest. Having an overflowing popup within a scroll area is really common. Basic example is a dialog, with a simple popup that is overflowing the content.
but we can't fix this on our side 馃槶
Have you ever considered, setting these attributes for popper in case someone explicite sets the mountNode of the popup to the body?
I mean, if I am using the body, I expect the positioning based on the window and not on a scroll container or dialog where the popup is used in the end.
Most helpful comment
It's definitely caused by #3607, but a fix provided there was correct. You can change
boundariesElementelement viapopperModifiers:https://popper.js.org/popper-documentation.html#modifiers..preventOverflow.boundariesElement
https://codesandbox.io/s/semantic-ui-react-zf6pd
For me it looks like an edge case: positioning was correct only arrow is broken, but we can't fix this on our side 馃槶