fix: popover ios issue (#25696)

* fix: popover ios issue

* add comments

* more comments
This commit is contained in:
Abhishek authored and GitHub committed 2025-12-17 10:14:56 +00:00
1 parent c361b9bbc5
commit 0604c960a4
3 files changed
+14 -23

No files matched your search

@@ -96,7 +96,8 @@ export function DatePickerWithRange({
return (
<div className={classNames("grid gap-2", className)}>
<Popover.Root>
{/* modal prop required for iOS compatibility when nested inside Dialog modals */}
<Popover.Root modal>
<Popover.Trigger asChild>
<Button
data-testid="date-range"
@@ -36,7 +36,8 @@ const DatePicker = ({ minDate, disabled, date, onDatesChange, className, label }
return (
<div className={classNames("grid gap-2", className)}>
<Popover.Root>
{/* modal prop required for iOS compatibility when nested inside Dialog modals */}
<Popover.Root modal>
<Popover.Trigger asChild>
<Button
data-testid="pick-date"