Popover component: "shift" prop with placement: left/right doesn't behave as expected #68555
Open
2 of 6 tasks
Labels
[Type] Bug
An existing feature does not function as intended
Description
edited. Misunderstood the purpose of "shift" and mixed it up with "flip". Still was curious about the behaviour.
Playing around with it more, it seems the issue has more to do with some interaction between the "resize" prop and the "shift" prop. resize is default to true, and when only setting shift to true, it causes the popover to try to resize and shift? which obviously doesn't really work out quite that well... it seems like it best behaves when only one is set, so i think the docs should at least be updated to indicate that they're not intended to be used together (and that if you're setting shift to true, you should also probably set resize to false).
Example from storybook:
https://github.com/user-attachments/assets/2b0ed5c7-49ed-484d-aee4-f1262d62c627
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
2025-01-08_14-02-00.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: