Conversation
|
Is there a way to add a test for this? |
|
@ekwoka I see no easy way to test this, the logic is almost entirely in @floating-ui/dom. Current e2e test is minimalist. |
Adds a Cypress test that verifies .noflip prevents automatic flipping by positioning an anchor at the bottom of the viewport with .bottom.noflip and asserting the element stays below the reference button. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PR Review: #4382 — Add
|
|
Thanks for this @aguingand! I've rebased your branch onto main (it had merge conflicts) and opened #4791 with your commit intact — you'll get full author credit when it merges. 🤙 |
This PR adds ability to disable auto flipping for anchor. In some cases you want to force the anchored element to stay at his position and not flipping to the top if there is no enough room below. For example with large menus or popovers teleported to body.
Usage :