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
|
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 :