react: SelectPanel inside Dialog v2 footer incorrectly chooses its anchor side on opening (memex)
Description
Hi!
While using a SelectPanel inside of the Dialog V2 footer (via the renderFooter prop); it appears that the SelectPanel does not correctly pick the direction to open in, which leads to the panel opening off the page downwards.
Such as:
However, I am unable to reproduce this when rendering the same SelectPanel inside of the dialog’s body, which indicates most likely an issue with the dialog footer wrapping container not properly communicating it’s position on the screen (probably related to the anchor positioning logic: https://github.com/primer/behaviors/blob/main/docs/anchored-position.md)
Steps to reproduce
- Create a Dialog V2
- Ensure that the dialog has enough contents such that it fills most of the screen
- Render a Select Panel in the dialogs footer
- Open the panel, and observe it will always go off the bottom of the screen (opening downwards) regardless if it overflows.
Version
v36.0.0
Browser
Firefox
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 21 (13 by maintainers)
Yeah this should be resolved implicitly. I’ll double check as we get a shippable version.
👋 Hi @japf, we’re currently on target for 8 December for completion of the
Dialogrefactor, including fix of this bug.It’s not in our OKRs for this quarter so it’s unlikely for us to get around to this in the next few months. Perhaps we will pick this work up in September.
We failed to reach the target date due to the holiday period and so work has rolled over into this Q. As we start integrating I can take a look at this particular bug to ensure it has been resolved.
@lesliecdubs - 👋 Based on @keithamus 's last update, are we on track for the Dialog updates here? Can we test out the updates in Issues?