mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 01:22:49 +00:00
fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user