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 <Popover
opened={opened} opened={opened}
onChange={close} onChange={close}
position="bottom" position="bottom-start"
width="auto" width="auto"
trapFocus trapFocus
withArrow 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> <Popover.Target>
<TextInput <TextInput