This commit is contained in:
estifanos
2026-08-10 08:29:00 +00:00
parent 34ae207834
commit d1e9bc47c6

View File

@@ -222,10 +222,17 @@ export function AmharicDatePicker({
<Popover
opened={opened}
onChange={close}
position="bottom"
position="bottom-start"
width="auto"
trapFocus
withArrow
withinPortal
// Inside a Modal, the target sits in a scrollable container — floating-ui's
// default flip middleware measures room against that scroll container, not
// the viewport, and flips the dropdown above the field where it runs off
// the top of the screen. Keeping it pinned below and letting shift nudge it
// sideways instead avoids that.
middlewares={{ flip: false, shift: true }}
>
<Popover.Target>
<TextInput