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